Hello,
I have:
-
A CGridView with id: ‘tabla-seleccion’
-
A checkbox column in the CGridView
-
A delegate event associated with the checkbox elements of the table
jQuery(document).ready(function(){
jQuery('#tabla-seleccion table').delegate(':checkbox','change', function(){
ShowHidePlots();
});
The event handler works ok when I click on the checkbox of any row inside the body of the table. But when I click on the "check-all-boxes" box (the checkbox inside the thead) then it executes the function ShowHidePlots() before the rest of checkboxes are refreshed.
How can I make ShowHidePlots() to execute after all checkboxes in CGridView have updated its "checked" atribute?
Thanks
(Yii version: yii-1.1.10.r3566)