0

I have a problem with jqGrid. Suppose I have define a grid like that:

 $(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");
});

And I only want to allow delete action on the row has key = "aaaa". How should I do?

Bhushan
  • 6,151
  • 13
  • 58
  • 91
hoang nguyen
  • 2,119
  • 5
  • 21
  • 20

0 Answers0