Forum
11:35
16/01/2009
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.
02:29
Moderators
30/10/2007
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.
09:23
16/01/2009
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.
10:09
16/01/2009
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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66