Just off the top of my head (and keep in mind I to am still new to jqGrid) but I think the best way would maybe be with userdata (see docs). You could then do something along the line of $(“#grid_id”).setGridParam(caption:”Output from userdata”,);
Hopefully some of the real experts will get back to you on this one to 😉