Hello,
Can the phpgrid Caption be dynamic? linked to a column or changed in do_onload function!
NB.I have a paid version
Thanks in advanced
2 Answers
Also one more question,
Can be the subgrid keeps open(in case it was not hidden) after the auto reload or after clicking the refresh button
Thanks in advanced
To change caption, you can use following in loadcomplete event.
var grid = $("#list1");
grid.setCaption('Test 123');
To keep subgrid open, you need to preserve the ID of last opened subgrid.
var selr = grid.jqGrid('getGridParam','selrow'); // get id of master grid selected row
and then on load, expand its subgrid.
Related discussion is available here …
http://stackoverflow.com/questions/3345401/expanding-jqgrid-subgrid
Your Answer