Jump to content

unimdblistgrid onclick button to open another form


devya

Recommended Posts

How to make the button will run to open the other form ?

config.itemTpl=  new Ext.XTemplate
                (
                ' <table style="color:white;vertical-align:left;border-style:outset;border-radius:1px;background:SlateBlue; ">'+
                '<tr> '+
    '<td width="10px" rowspan="2">{7}</td>'+
    '<td >{2}, {6}km away</td> '+
    '<td > ({5}) <img src="files/images/star.png" ></td> '+
    '<td rowspan="2"> {[this.getColor(values)]} </td>'+
    '<td rowspan="2"> <button onclick=this.myFunction()>Profiles</button></td> '+
  '</tr> '+
  '<tr> <td>{8}</td>'+
  '<td>{[this.Setfree(values)]} </td>   </tr>'+
  '</table>',
   
   {
      getColor: function(values)
      {
        if(values[10] == 2) return '<img src="files/images/YellowLight.png">';
        else
           if (values[10] == 3) return '<img src="files/images/BlueLight.png">';
              else  return '<img src="files/images/RedLight.png">';
      }
   }
    
    , {
      Setfree: function(values)
      {
        if(values[9] == 0) return 'Free';
        else
          return '$'+values[9] ;
      }
   }
   ,
    {
     myFunction: function(){
         ajaxRequest(sender,"showdetails",[]);
    }

      }
    ); 

 

unimdblistgrid-->onajaxevent :

if EventName = 'showdetails' then
  begin
    fmWorkerProfile.ShowModal();
  end;

 

i can not make it run

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...