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
Change double click row to single click or touch for mobile device
08/05/2014
21:35
Avatar
nate33
New Member
Members
Forum Posts: 2
Member Since:
08/05/2014
sp_UserOfflineSmall Offline

I need to change a grid so that a user can do a single touch on a mobile device to open the item. The website is using a very old version of jqgrid (3.6 beta2) so I would expect updating to the newest  version would give me a lot of issue.  What would be the best approach? It also needs to know the permission of the user (i.e. admin, attendee), but i think i can handle that. The website is using MVC 2.0 if that matters. 

Thanks a lot!

13/05/2014
10:53
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

You can use onSelectRow event for this purpose - if I understand right.

Regards

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.

14/05/2014
23:58
Avatar
nate33
New Member
Members
Forum Posts: 2
Member Since:
08/05/2014
sp_UserOfflineSmall Offline

tony said:

Hello,

You can use onSelectRow event for this purpose - if I understand right.

Regards


Thank you so much it worked. 

For anyone else having the same issue here is my function:

if($.isFunction(this.p.onSelectRow)){

    $(this).click(function(e){

        console.log("single click");

    });

}

I put it right under the ondelClickRow version.  I also had to add a empty function where its set to null on top for some odd reason.  Here is so extra resources http://www.trirand.com/jqgridw.....iki:events

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
57 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