It works, however it will add to each and very single row. When my requirement needs to display 250 rows, it just a way too slow when my click function needs to retrieve data from Database.
When you add after setCell in afterInsertRow for 250 rows, It actually attached click function 250 times for the first row (We can do math for other row).
The correct place is in “gridComplete: function() { }”
Thanks again, your suggestion still led to solve my problem.
A better way to do this might be to create this link on the PHP (server side) so it offloads the work onto the server and the info is already there for the jqgrid. Here is an example for an XML data return (please note the “htmlentities” in the php code):