我的Jqgrid如下所示。当我选择特定行时,我的图像列数据消失。当我点击其他行时,前一行的数据再次出现。请告诉我如何修复它。
点击之前:
点击后
单击行后,Actions
中的图像和Name
之前的列消失。当我点击另一行时,这些图像会再次出现,就像点击之前一样。我的colmodel就是:
$("#list_Alerts").jqGrid({
datatype: function (gridData) {
BindAlertsGridData(gridData);
},
colNames: ['','', '<input type="checkbox" id="cbox" onclick=checkBox(event) />', 'Name','E-Mail Address', 'Agency', 'Status', '','Actions'],
colModel: [{ name: 'ApprovedFlag', index: 'ApprovedFlag', width: 25, align: 'left', resizeable: false, formatter: checkStatusFlag },
{ name: 'user_id', index: 'user_id', align: 'left', hidden: true, resizable: false, key: true },
{ name: 'Check_Box', editable: true, index: 'Check_Box', width: 25, align: 'left', resizable: false, edittype: 'checkbox', formatoptions: { disabled: false }, editoptions: { value: "True:False" }, formatter: checkboxFormatter, sortable: false },
{ name: 'Name', index: 'Name', width: 150, align: 'left', resizable: false, formatter: fontColorFormat },
{ name: 'Email', index: 'Email', width: 150, align: 'left', resizable: false },
{ name: 'Agency', index: 'Agency', width: 220, align: 'left', resizable: false },
{ name: 'Status', index: 'Status', width: 70, align: 'left', resizable: false },
{ name: 'Blocked', index: 'Blocked', width: 25, align: 'left', resizeable: false,formatter: checkStatus ,sortable:false},
{ name: 'Actions', sortable: false, edittype: 'select', width: 90, align: 'left', sortable: false, formatter: function (cellvalue, options, rowObject) { return "<div id= action_" + rowObject[1] + " class='action'><div style='float:left;margin-left:2px;margin-right:5px'><a class='ui-icon ui-icon-check' href=#" + rowObject[0] + " title='Approve'></a></div><div style='float:left;margin-left:2px;margin-right:5px'><a class='ui-icon ui-icon-pencil' href=#" + rowObject[0] + " title='Edit'></a></div><div style='float:left;'><a class='ui-icon ui-icon-closethick' onclick=\"return confirm('Are you sure you want to delete this record?');\" title='Delete' href=#" + rowObject[0] + "></a></div><div class='clear'></div></div>"; }, resizable: false }],
rowNum: 20,
rowList: [2, 10, 20, 50], // page size dropdown
pager: jQuery('#pager_Alerts'),
pgbuttons: true,
viewrecords: true,
pagerpos: 'right',
recordpos: 'left',
shrinkToFit: false,
sortorder: "asc",
sortname: "user_id",
loadtext: "Loading",
width: 755,
hoverrows: false,
gridComplete: function () {});
请告诉我我做错了什么?