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
Don't select row when clicking checkbox
16/01/2009
11:35
Avatar
dunx
dunx
Member
Members
Forum Posts: 11
Member Since:
16/01/2009
sp_UserOfflineSmall Offline

I have a list of messages displayed in a jqGrid and onSelectRow is used to display the message in a DIV below the grid. This all works fine and looks great 🙂

I also want to be able to have a checkbox on each row for Delete Message functionality. What I don't want to happen is for the row to be selected when I click on the checkbox.

Is there any way of doing this?

Ideally, I'd like to use multiselect, but again I don't want the checkbox to be checked just because I've selected the row - the user *must* click the checkbox for that to happen.

19/01/2009
02:29
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Please check what is new in 3.4 beta1. There is a option for this functionality.

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.

19/01/2009
09:23
Avatar
dunx
dunx
Member
Members
Forum Posts: 11
Member Since:
16/01/2009
sp_UserOfflineSmall Offline

If this is the multiboxonly functionality with multiselect, then this is not what I need although I have tested it and it works as it probably should.

In my case I want the onSelectRow to fire when I click on the row, but *not* when I click on a checkbox I've placed in the row myself. Using multiboxonly achieves the opposite result - the onSelectRow only fires when I check the box

I think a good solution would be to pass in the row_id and cell_id to onSelectRow and then I can ignore any click made in the cell with my checkbox inside.

jqGrid works on the assumptionthat clicking on a row selects the row. I'd like to perform an action when I click on the row, but not select it until I click on the checkbox, so I suppose another method would be to have a onClickRow event, which overrides onSelectRow.

20/01/2009
10:09
Avatar
dunx
dunx
Member
Members
Forum Posts: 11
Member Since:
16/01/2009
sp_UserOfflineSmall Offline

Okay, I think I have a solution for this and that's to use the new beta multiboxonly functionality and to only perform my “display message” functionality using the onCellSelect action when the col_id!=0 (i.e. the checkbox column provided by multiselect).

Hmm... doesn't work as onCellSelect doesn't fire if multiselect and multiboxonly are true. That doesn't seem right, so I'll raise the issue in the Beta Help thread.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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