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
Turn off select checkbox when clicking on row?
Tags: Hi
21/02/2011
19:59
Avatar
Raif
Member
Members
Forum Posts: 17
Member Since:
03/09/2009
sp_UserOfflineSmall Offline

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

24/02/2011
17:18
Avatar
Raif
Member
Members
Forum Posts: 17
Member Since:
03/09/2009
sp_UserOfflineSmall Offline

Um... bump?

Perhaps if I could just turn off select row feature that would stop it from checking the checkbox.  Is that possible?

R

24/02/2011
20:02
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hi Raif,

I am not sure that I understand you correct, but if you want don't see the checkboxes you can hide the grid column with the chackboxes:

$("#list").jqGrid('hideCol','cb');

Best regards

Oleg

25/02/2011
00:21
Avatar
Raif
Member
Members
Forum Posts: 17
Member Since:
03/09/2009
sp_UserOfflineSmall Offline

Thanks Oleg,

But what I need is this.

I have a multiselect grid.  when I click anywhere in the row it checks the checkbox.  I only want the checkbox to check when you click directly on the checkbox.  not on the row.

Thanks,

R

26/04/2011
01:13
Avatar
john5788
Member
Members
Forum Posts: 3
Member Since:
08/04/2011
sp_UserOfflineSmall Offline

bump,

I am looking for the same feature. Has anyone found a way around the default behavior?

26/04/2011
14:07
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

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

Best regards
Oleg 

18/07/2012
21:51
Avatar
nawglan
New Member
Members
Forum Posts: 1
Member Since:
18/07/2012
sp_UserOfflineSmall Offline

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);
      }
    },

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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