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
Select and deselect behavior with left or right click
17/01/2011
17:05
Avatar
vmillard
France
Member
Members
Forum Posts: 3
Member Since:
12/01/2011
sp_UserOfflineSmall Offline

Hello,

When you click on a row, she appears selected (highlight) and if you click again on the same row, it deselect it.

My question : is there a way to change this behavior ? what I want to do is when I click on a row, it select it, and if I click again, it keep the row selected. Is it doable ?

In more specific way, i use the contextMenu and when I right click on a row, I grab row's id to check a status in my database and I offer some actions (in the context menu) to the user depending the row's status. the problem occur when i right click on a selected row : it deselect it, so my context menu become unusable.

Thx in advance for your help

25/01/2011
17:15
Avatar
KirkOlson
Member
Members
Forum Posts: 3
Member Since:
17/11/2009
sp_UserOfflineSmall Offline

I second this motion! I have the exact same problem. Any suggestions anyone?

26/01/2011
17:17
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks. Yes I will change this to its brevious behaviour and mybe add a parameter to simulate the existing one.

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.

27/01/2011
23:07
Avatar
felipeniga
New Member
Members
Forum Posts: 1
Member Since:
27/01/2011
sp_UserOfflineSmall Offline

tony said:

Hello,

Thanks. Yes I will change this to its brevious behaviour and mybe add a parameter to simulate the existing one.

Best Regards

Tony


Hi tony. I have the same problem. While you dont implement a solution in a new version, is there anyway to override this function to change this behavior? Or some change directly at source code of jqgrid.js? I finished my project and some users are bothering me about that.

Excelent job with jqgrid.

Thanks a lot!

07/02/2011
14:43
Avatar
KirkOlson
Member
Members
Forum Posts: 3
Member Since:
17/11/2009
sp_UserOfflineSmall Offline

Here is a workaround my brother and I came up with, just place the following code in the beforeSelectRow event:

      beforeSelectRow: function(rowid, e) {
          if ($(this).getGridParam('selrow') == rowid) {
            return false;
          } else {
            return true;
          }
        }

07/02/2011
16:06
Avatar
vmillard
France
Member
Members
Forum Posts: 3
Member Since:
12/01/2011
sp_UserOfflineSmall Offline

Thanks for taking a look at this Tony. 

Thanks to you Kirk, the workaround works well for a left click, it's perfect ! Unfortunately it's not effective for a right click.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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