I’m using the jQuery plugin that generates interactive tables called jqGrid.
I want to use this “editfunc” (2/3rds or 3/4ths down the page) but I can’t find a clear example of how to implement it anywhere. I’ve attempted several differnt things and all of them leave me with total failure.
To be clear, the table generated looks something like this:

That lower bar is called the “navpbar” or “pager”, you implement it as a separate DIV, the API and documentation is fairly unclear (to myself anyway) on how exactly I put a custom function onto those buttons such as “add”, “edit”, “delete”, etc… I can get default functionality working, but I can’t find anything through websearches, this site, or the API docs on what the actual implementation looks like.
jqGrid has opened source. It helps to clear all questions directly in the code. Look at the lines for example. You will see what
navGriddo on click on the ‘Edit’ button of the navigator:So if you define
editfunccallback function the function will be called with id of selected row as the parameter instead of creating editing dialog by editGridRow.The method editGridRow have many customization functionality. The
prmEditparameter of the navGrid allow to specify any option used by editGridRow.If you don’t want do display editing form and display any other GUI instead you can use
editfunccallback function. For example:See the demo. Select a row and click on the “Edit” button and you will see the
alertinstead of the standard editing form.