colModel:[
{name:'mycolname',index:'mycolname', width:20,
formatter: function(cellvalue, options, rowObject) {
return '<span class="ui-icon ui-icon-folder-open" title="click to open" onclick="clickme('+options.rowId+');"></span>'; } //replace span with button if you want a real button
},...],
function clickme(rowid) {
alert(rowid);
}
1 comment:
Thanks men , appreciated your info
Post a Comment