Dynamic grid caption!!

QuestionsDynamic grid caption!!
Hussein Alaedin asked 6 years ago

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
Hussein Alaedin answered 6 years ago

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

Abu Ghufran answered 6 years ago

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

5 + 4 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!