I have a jqGrid. At the footer of it there are 3 default icons for Add, Delete and Edit records(They are not for inline edit/add/delete). I have created a html navigation bar and in that bar I have placed 3 button named Add, Edit and Delete. I want to mentioned that this edit/add/delete operation has some complex options. That means they are not normal delete/edit operation. That's why I have created the add,delete,edit options separately and placed them as a reference in my pager section like below.
navGrid(
'#gridPager', {
view: true,
add: true,
edit: true,
del: true,
search: true,
closeOnEscape:true
}, editParams, // default settings for edit
newParams, // default settings for add
deleteParams , ....
After that I have added click event to my customized buttons -
$("#editButton").click(function() {
var gr = jQuery("#gridTable").jqGrid('getGridParam', 'selrow');
alert(gr);
if (gr != null)
jQuery("#gridTable").jqGrid('editGridRow', gr, editParams);
else
alert("Please Select Row");
})
Now the problem is. When using both the edit buttons i'm finding that they are not working perfectly. Am I missing something or doing anything wrong. Any suggestion will be helpful for me.
Please have a look on the attached image for getting an idea what I'm trying to achieve.