Master refresh on subgrid update

QuestionsMaster refresh on subgrid update
Alberto asked 10 years ago

Hi!

I've a master and a detail grid (subgrid). When I change detail grid (add/edit or delete), I refresh parent grid using:

$detailopt["add_options"]["afterSubmit"] = "function(){jQuery('#list1').trigger('reloadGrid',[{current:true}]); return [true, ''];}";
$detailopt["edit_options"]["afterSubmit"] = "function(){jQuery('#list1').trigger('reloadGrid',[{current:true}]); return [true, ''];}";
$detailopt["delete_options"]["afterSubmit"] = "function() jQuery('#list1').trigger('reloadGrid',[{current:true}]); return [true, ''];}";
$detailgrid->set_options($detailopt);

The parent is ok, the row that I've been modifying is selected, but subgrid is "frozen". It shows the detail, but add/edit/delete buttons are inactive.

Thanks!

Your Answer

1 + 3 =

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?