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
select all method
03/01/2009
12:37
Avatar
steve
Member
Members
Forum Posts: 5
Member Since:
03/01/2009
sp_UserOfflineSmall Offline

pls add a select all method for multiselect.

thanks in advance

05/01/2009
01:54
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

There is a method onSelectAll. See examples.

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.

06/01/2009
12:42
Avatar
steve
Member
Members
Forum Posts: 5
Member Since:
03/01/2009
sp_UserOfflineSmall Offline

oh i mean i would like to use javascript to check the select all checkbox.

i am able to loop thru the list and check all item but i can not check the box on the header.

-vince

08/01/2009
08:51
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks for this. The id of every header check box is cb_jqg. But this point me that this a potencial bug when we use multiple grids with multiselect true. I recommend you not to use this id for now until I correct this in next release.

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.

12/01/2009
06:07
Avatar
steve
Member
Members
Forum Posts: 5
Member Since:
03/01/2009
sp_UserOfflineSmall Offline

i also notice some problem. i am not sure if i am doing it in a proper way

i have the following in jqGrid to sync the select box with a column on db. however, when i change the num of rows it didn't work. changing the num of rows will not reload page from backend?

gridComplete: function(){

        rowlist = $('#list').getDataIDs();

        for (i=0;i<rowlist.length;i++) {
            if ($('#list2').getRowData(rowlist[i]).selection == 1) {
                $('#list2').setSelection(rowlist[i]);
            }

},

rowList:[10,20,30],

-vince

12/01/2009
10:12
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Check your server side code

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.

15/01/2009
11:16
Avatar
steve
Member
Members
Forum Posts: 5
Member Since:
03/01/2009
sp_UserOfflineSmall Offline

actually everything just fine if i put

rowList:[],

to disable the rowlist select box.

and the server should response no problem with different rowNum: value

it maybe a bug because when i change the rowlist say from 20 to 30. it work but just the select box sync function doesn't. however if i keep going and click next page or something else like fresh then works, 100%

also after i change the rowlist selection sometimes it work(i mean only the select sync) and sometimes it doesn't, sometimes when i change from 10 to 20. only the first 10 is selected and the rest are not. for sure if i click next/prev page it then work fine until i change the rowlist again.

-vince

15/01/2009
11:27
Avatar
steve
Member
Members
Forum Posts: 5
Member Since:
03/01/2009
sp_UserOfflineSmall Offline

oh actually i found out something during i msg you.

.setSelection is a toggle. i just notice changing rowlist will not clear the selected box status.

i just add a resetSelection and everything works fine.

thanks.

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