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
Updating colModel after search
12/11/2010
22:47
Avatar
Reg
Calgary, Canada
Member
Members
Forum Posts: 92
Member Since:
06/06/2008
sp_UserOfflineSmall Offline

My grid has a custom search area contining a single select control always appearing above the grid; when the search changes, of course, the data is refreshed. but the grid definition is not.

My grid definition contains another select box. The contents of this box depend on what was selected in the search option select.

When I change the search criterion, I want to change the option list for this second select box.

I think this can be done using the .aftersearch Function() event and an ajax call to get the list of options (as described in the examples).

The example shows how to update the select options on the edit form (once, when it is initiated) so it refers to (for example)

jQuery("#City",formid).append(t).

I don't want to call this every time the edit form is displayed, but once is not enough because the search criterion on the grid may have changed.

My question: can I update the returned values to the column in the colModel (and if so, how) or do I have to redefine the grid on every search?

Thanks,

Reg

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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