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
MultipleSelect remove a checkbox
12/02/2009
10:33
Avatar
thedavix
Member
Members
Forum Posts: 5
Member Since:
12/02/2009
sp_UserOfflineSmall Offline

Hi there Wink

I have another question, is it possible to remove a checkbox from a line?

Because for the time beeing I tried to do something like this

loadComplete: function(){
      var rowIds = jQuery("#list-profiles").getDataIDs();
      for(var i=0; i < rowIds.length; i++)
      {
        var rowData = $('#list-profiles').getRowData(rowIds[i]);
        if(rowData.removeCheck == 'true')
        {
          $('#jqg_'+rowIds[i]).remove();
        }
      }

With a hidden row removeCheck, and the checkobx disapear but when I click on the checkbox (check all :: the one next to the titles of the columns), the Id of the line NOT containing the checkbox is returned with all the others.. Cry even if the checkbox is no more present...

Any clues?

Thanks

16/02/2009
10:28
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

From the code this is expected behavior - when select all - all the rows are selected instead of that there is  no check box. Will see what I can do, but no promise. One possible solution  - strore the id that should be not selected in sepate array and exlude it when you do something when you select all.

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.

17/02/2009
03:22
Avatar
thedavix
Member
Members
Forum Posts: 5
Member Since:
12/02/2009
sp_UserOfflineSmall Offline

Thanks for the reply Tony.

Yes in fact that's what I did, but it seems to me that the behavior is somewhat wrong, when you check select all the script should go an parse the checkboxes of the grid and look which exist and check them.

But it's my view of the problem 😉

Either way... it's a really powerfull datagrid! Thanks again for all your work

Best,
David

17/02/2009
03:57
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks. No problem. If I look into the code right now - you are absolutley right. I will add this in next release. Also I see a lot of improvements here.

Thank you.

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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