devya Posted May 15, 2020 Share Posted May 15, 2020 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.