Parent Grid reload on subgrid delete row

QuestionsParent Grid reload on subgrid delete row
Frederik asked 6 years ago

Hello, i'm using master-sub grid, i want to reload the entire parent grid after the delete event on a subgrid row.

Currently after the delete event the subgrid is reloaded but not the parent-master grid.

I tried to add this line in the subgrid code without success:

$opt["delete_options"]["afterSubmit"] = "function(){jQuery('#list1').trigger('reloadGrid',[{jqgrid_page:1}]); return [true, ''];}";

The id of the master grid is #list1.

Can you help me? Thanks

1 Answers
Abu Ghufran answered 6 years ago

I tested by placing following lines in subgrid_detail.php and it seems to be working fine.
You can put them in demos and recheck.

$grid["delete_options"]["afterSubmit"] = "function(){jQuery('#list1').trigger('reloadGrid',[{jqgrid_page:1}]); return [true, ''];}";
$g->set_options($grid);

Your Answer

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