问题上下文
var myGridPanel = new Ext.grid.GridPanel({
selModel : new Ext.selection.CheckboxModel(),
loadMask:true,
autoScroll : true,
id:myGridPanel',
store : processDefinitionStore,
stripeRows : true,
columns : [
{
header : '<span class="spas">PROCESS UUID</span>',
dataIndex : 'UUID.value',
hidden:true
},
{
align :'center',
header : '',
dataIndex : 'state',
width : 100,
renderer :function(value, cellmeta, record, rowIndex, columnIndex, store){
var str = "";
str = str + "<input type='image' title='Enable' id='machinemapid' alt='Enable' src='<%=rootPath%>/image/enabel.png' id='Enable' οnclick=\"changeState('"+record.data["name"]+"','"+record.data["version"]+"','"+value+"')\"/>";
str = str + " ";
str = str + " <input type='image' title='Remove All Instances' alt='remove_all' src='<%=rootPath%>/image/remove_all.png' id='delete' οnclick=\"deleteAllProcessInstances('"+record.data["name"]+"','"+record.data["version"]+"')\"/>";
str = str + " ";
str = str + " <input type='image' title='Delete' alt='Delete' src='<%=rootPath%>/image/delete.png' id='delete' οnclick=\"deleteProcessDefinition('"+record.data["name"]+"','"+record.data["version"]+"')\"/>";
return str;
return str;
}
}
}