我有一个问题jqGrid
。假设我已经定义了一个这样的网格:
$(function(){
$("#crud").jqGrid({
url: '<c:url value="/log4jConf.html?method=getJSONProperties"/>',
editurl: '<c:url value="/log4jConf.html?method=updateProperties"/>',
datatype: 'json',
colNames:['Key','Value'],
loadonce: true,
colModel:[
{name:'key',index:'key',width:453,editable:true},
{name:'value',index:'value',width:741, editable:true},
],
pager: '#pcrud',
rowNum:30,
rowList:[30,40,50],
viewrecords: true,
caption:'Log4j Properties',
height: 'auto',
});
jQuery("#crud").jqGrid('navGrid',"#pcrud",{edit:false,add:false,del:true});
jQuery("#crud").jqGrid('inlineNav',"#pcrud");
});
而且我只想允许对已删除的行执行删除操作key = "aaaa"
。我应该怎么做?