how to refresh or reload a subgrid?

Questionshow to refresh or reload a subgrid?
Larry Groebe asked 6 years ago

I keep thinking there should be an easy way to reload an open subgrid, just as if the user had twisted closed then reopen the plus/minus  icon. I am performing some operations behind the scenes on my subgrid’s SQL data. a statement siomething like this —

$(‘#students’).trigger(‘reloadGrid’)

— doesn’t cause an error but also doesn’t refetch any SQL data. But closing and opening the subgrid does, of course. The subgrid is generated through subgridurl.

Any good ideas?

1 Answers
Abu Ghufran Staff answered 6 years ago

The nested subgrid ID is generated dynamically and may not work just with $(“#students”).

Instead you can set:

$(“#<?php echo $g->id ?>”).trigger(‘reloadGrid’);

where $g = new jqgrid( ) of subgrid

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Larry Groebe replied 6 years ago

Thanks – that was the clue I needed.

Your Answer

14 + 9 =

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?