js_on_select_row event not fired when you select/deselect all

Questionsjs_on_select_row event not fired when you select/deselect all
Gary Wilson asked 2 years ago

Hi Abu,

I see the above event fired when I select or deselect a row but if I click on the top checkbox and (de)select all rows in one click, the event is not fired. This is unexpected.

Regards

Gary

P.S. where do we get a complete list of all events please?

3 Answers
Abu Ghufran Staff answered 2 years ago

Perhaps, you need this event: onSelectAll

Complete list can be checked using this online resource. This is core JS library we’re using behind php code.

http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Gary Wilson answered 2 years ago

Hi Abu,

I have sent you the same grid code for another ticket today via email. I could not figure out the following:

  1. How can you use your set_events PHP method to trap this event since your events have “_” characters? Your method does not seem to work with:

    $evt[“onSelectAll”] = “my_method”; $comp->set_events($evt)

  2. How to directly set the property onSelectAll for the grid using native Javascript? Something like:

    jQuery(“#comp”).jqGrid(‘setGridParam’……..

but I got lost at this point

Thanks

Gary Wilson answered 2 years ago

OK. I have figured it out.

E.g.

$(‘#comp’).jqGrid(‘setGridParam’,{onSelectAll: function(row, status) {
my_func1();
}});

We can “close” this one.

Your Answer

2 + 0 =

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?