Reputation: 1467
Is there any way, in jqgrid, to redefine the function to call when the "add" button of the navgrid?
The only thing I've found is to add a new button redefining "onclickbutton" property , and I've looked at code, but I think that is impossible, isn't it?
Thanks in advance,
Upvotes: 0
Views: 1596
Reputation: 221997
In the code which you referenced you can find the line of code. So is you defines addfunc
option of navGrid
you can implement your own implementation of "Add" button.
Alternatively you can just use add: false
option of navGrid
and then uses navButtonAdd to add your custom button which looks exactly like "Add" button.
Upvotes: 2