Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
onSelectAll not firing
22/04/2010
22:47
Avatar
danbowles
USA
Member
Members
Forum Posts: 8
Member Since:
22/04/2010
sp_UserOfflineSmall Offline

I am trying to set the onSelectAll parameter to call a function and nothing happens when I click the header checkbox.

I have multiselect: true.

Here is the code I'm using to set the param:

$grid.setGridParam({onSelectAll: function(row, status) {alert("OMG!");}});

$('#grid').jqGrid('setGridParam','onSelectAll', function(){alert("OMG");});

Neither line of code works.  I click the header checkbox and no alertbox.

I will say this, however - you have developed one incredible jQuery plug-in.  It has saved me so much time/energy - thanks!

26/04/2010
14:11
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

You should do it like this:

$('#grid').jqGrid('setGridParam',{onSelectAll: function(row, status) {alert("OMG!");}});

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

26/04/2010
14:46
Avatar
danbowles
USA
Member
Members
Forum Posts: 8
Member Since:
22/04/2010
sp_UserOfflineSmall Offline

Gah!  That makes sense :).  Thanks a lot, Tony! 😀

30/04/2010
17:53
Avatar
danbowles
USA
Member
Members
Forum Posts: 8
Member Since:
22/04/2010
sp_UserOfflineSmall Offline

Actually, I am still having an odd problem.  If I don't specifiy onSelectAll when creating the jqGrid, and specify onSelectAll later, the event won't fire correctly.

If, however, I set onSelectAll to some empty anonymous function, then later set onSelectAll to be my own function, it works.  Is this a known bug?

01/05/2010
11:31
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Thanks. This is a bug. I fixed it in the GitHub

http://github.com/tonytomov/jq.....addc0b9693

Best Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

01/05/2010
17:24
Avatar
danbowles
USA
Member
Members
Forum Posts: 8
Member Since:
22/04/2010
sp_UserOfflineSmall Offline

Nice :).  Thanks, Tony!

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
43 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information