Dynamic grid caption!!

QuestionsDynamic grid caption!!
Hussein Alaedin asked 7 years ago

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 7 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 7 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 …

Your Answer

20 + 17 =

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?