Total on footer when all multiselect rows turn on or off.

QuestionsTotal on footer when all multiselect rows turn on or off.
Marcos Paulo asked 9 years ago

Hi Abu and community. I've everything working fine with my multiselect rows and footer with totals, but not when I click to select or unselect ALL rows on the header of the grid, because the rows turn select or unselect ok, but there is no action to calculate the total on the footer. Is there a event for that, as below, or other solution? It's kind of the same of the event on_load_complete, but with all rows marked or unmarked. The same problem happens at footer-row.php demo.

$e = array();
$e["on_data_display"] = array("pre_render","",true);
$e["js_on_select_row"] = "grid_onselect";
$e["js_on_load_complete"] = "grid_onload";

$g->set_events($e);

1 Answers
Abu Ghufran answered 9 years ago

You need to connect onSelectAll event with same function.

$opt["onSelectAll"] = "function(id,status){ grid_onselect(); }";
$g->set_options($opt);

Demo code: http://hastebin.com/ohokezatac.php

Your Answer

17 + 7 =

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?