-3

I want to Use JQGrid's pager buttons as my custom buttons for CRUD operation.

enter image description here

This is different because i want to override buttons click event for other buttons

1 Answers1

0

I found solution of my own problem

That is I have to get Jqrid's buttons ids This may not be a totally solid solution since they may change that id naming.

where gridId is my table id for jqgrid

$('#myDelete').click(function () { $('#del_' + gridId).click(); }); $('#myAdd').click(function () { $('#add_' + gridId).click(); }); $('#myUpdate').click(function () { $('#edit_' + gridId).click(); });