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_TopicIcon
How to trigger event manually.
28/07/2011
08:05
Avatar
surajpatil9211
Member
Members
Forum Posts: 4
Member Since:
26/07/2011
sp_UserOfflineSmall Offline

Hi,

I have a situation where i need to trigger the 'OnSelectRow' event manually.

I have tried $("#UsersGrid").Trigger('OnSelectRow'), but it's not working.

Thanks.

28/07/2011
10:37
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello,

there are misunderstanding in the terminology. If you want to select a row you can use setSelection method.

Moreover you should be very carefull in the case of identifirers: JavaScript is case sansitive language. So there are no jQuery.Trigger but only jQuery.trigger and there are exists no event with the name OnSelectRow - there are only the event with the name onSelectRow. By the way it's corresponds to the common naming conversion used in the JavaScripts: the calss names only schould be started with the capital first charactres.

Best regards
Oleg

09/09/2013
04:10
Avatar
Philippe K
New Member
Members
Forum Posts: 1
Member Since:
09/09/2013
sp_UserOfflineSmall Offline

Hello,

I'm also searching how to trigger jqGrid events manually. My grid has hiddengrid: true parameter. So the grid is loaded only if I click on the header button, but I need to trigger click event on this button manually (actually when I click on a button on the same page). I've tried following different code

myGrid.trigger("onHeaderClick");

myGrid.trigger("jqGridHeaderClick");

myGrid.trigger("HeaderClick");

myGrid.trigger("headerClick");

But now effect. Then I tried this one

$(".HeaderButton").trigger("click");

The last example make grid visible, but there is no data loaded Cry

How can I trigger "onHeaderClick"?

Thanks.Smile

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