我对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"
上的删除操作。我该怎么办?