Forum



19:59

03/09/2009

Hi I have a multiselect grid which has various buttons and links on it. Whenever you click on a any of these links or buttons it both selects the row and checks the the checkbox. I don't care about the selecting of the row but I don't want the checkbox checked or undchecked because that is clearly not the desired result. I have set multiboxonly:true and false ( wording in the wiki is a bit unclear ) and it still checks the box. Any help would be appreciated.
Thanks,
Raif
14:07

10/08/2009

You should just use additional parameter multiboxonly:true of the jqGrid. Look at this old answer having some demos.
Best regards
Oleg
21:51

18/07/2012

Using multiselect : true and multiboxonly: true doesn't do what he is asking for.
Instead, do this:
onSelectRow : function (rowid, status) {
var elem = document.activeElement;
if (elem.id) { // the checkbox has an id, so check for it
if (!status){
// unselect the select-all if any row is deselected
$('#cb_' + yourgridid).attr('checked',false);
}
} else {
// ensure that the row is not checked.
$('#' + yourgridid).setSelection(rowid, false);
}
},
Most Users Ever Online: 715
Currently Online:
46 Guest(s)
Currently Browsing this Page:
2 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