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
Grid reloads on filtering
19/04/2012
09:11
Avatar
aexon
Member
Members
Forum Posts: 6
Member Since:
09/02/2010
sp_UserOfflineSmall Offline

Hi,

I have the filterToolbar enabled and my grid (loadonce: true) has checkboxes (not via multiselect option, but manually added with html) rendered in one column. The basic idea is, that the user locally filters to see just a subset of a huge result. Then he/she selects some of the rows by clicking the checkboxes. Then he/she filters again resulting in another subset of the result and selecting more elements and so on. Then he/she can sumbit the grid to send selected values to the server.

The problem I am faced with is that everytime the user interacts with the filter elements (searchOnEnter: false, and there is a custom button that triggers clearToolbar), the whole grid gets reloaded by reloadGrid resulting in all checkboxes beeing deselected. This happens in triggerToolbar and clearToolbar of jqGrid.

Is there a way out of the box to reload the grid (which, if I understand right, is internally needed to apply the filters) having the status of the checkboxes preserved? Or do I need to handle it manually with some JavaScript?

I migrated from 3.6.2 to 4.2.0 some time ago and with 3.6.2 multiselect was not an option for me that time as there was too much JS stuff going on, which was not compatible with the way we needed to configure jqGrid. But maybe NOW this is another option?!

My version of jqGrid is 4.2.0.

Thanks in advance

Kai

Edit: The same happens on (local) sorting the data.

Edit2: Just for testing I enabled the multiselect option as well and checked checkboxes loose their status on filtering (local, server side not tested) and sorting. Is this a feature? 🙂

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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