main-grid-refresh-after-updating-subgrid

Questionsmain-grid-refresh-after-updating-subgrid
german asked 6 years ago

how to reload main grid automatically  after updating the subgrid value

1 Answers
Abu Ghufran Staff answered 6 years ago

You can put parent grid refresh code after onAfterSave event of subgrid code.

$grid[“onAfterSave”] = “function(){ jQuery(‘#list1’).trigger(‘reloadGrid’,[{jqgrid_page:1}]); }”;

where list1 is parent grid id.

Code: http://phpgrid.org/demo/demos/master-detail/subgrid_detail.phps Line 118

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

17 + 6 =

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?