Refresh multiple grids

QuestionsRefresh multiple grids
Jamie Bartlett asked 11 years ago

Does anyone know if it is possible to reload both grids when a row is updated in a subgrid?

My main grid has a calculated column based on data in the subgrid.

1 Answers
Abu Ghufran answered 11 years ago

If you mean master-detail grid (non-nested), You can bind onload event to subgrid,

$e["js_on_load_complete"] = "do_onload";
$grid->set_events($e);

and in function do_onload(){ … } you can reload both grid using js code.

jQuery('#list1').trigger("reloadGrid",[{jqgrid_page:1}]);
jQuery('#list2').trigger("reloadGrid",[{jqgrid_page:1}]);

Your Answer

3 + 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?