Nested grids

QuestionsNested grids
Gustavo Lazaro asked 5 years ago

Dear Abu. I have the version before 2.6. A program has four grids. All master-detail of each other. How should I reload the grids, when I add a record in the fourth grid, which updates the totals of the third grid and this in turn modifies the totals of the second and this also modifies the totals of the first. The idea is that when loading a record in the last grid, the previous ones are updated and reloaded. Thanks for your time.

1 Answers
Abu answered 5 years ago

On your fourth grid, you can put this code:

$opt[“add_options”][“afterSubmit”] = “function() {
$(‘#list1’).trigger(‘reloadGrid’, [{current:true}]);
$(‘#list2’).trigger(‘reloadGrid’, [{current:true}]);
$(‘#list3’).trigger(‘reloadGrid’, [{current:true}]);
return [true,”]; }”;

$g->set_options($opt);

When submit add dialog, it will refresh all parents keeping selection intact.

Your Answer

11 + 8 =

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?