Forum


16:40

Let me explain a scenario:
I have 6 columns of data. (A, B, C, D, E, F)
Each of the columns perform a dataUrl in the searchoptions and return the select options.
The select:value is a unique ID and the select:text is simply a display string.
Column A is a standard lookup, however the remaining columns depend on what select:value has been chosen for column A.
So, to populate B, C, D, E, and F I need to know what the user has chosen for A. (It would be nice to also prevent the user from searching for B, C, D, E, and F if they have not already added A as a filter criteria in the modal window.)
One thing I have tried to stay away from is using jQuery to parse the DOM and manipulate this search module as I would much rather use built-in jqGrid functionality.
Any thoughts?
22:20

Moderators
30/10/2007

Hello,
Not a simple task, but where you are – in form editing or in inline editing?
If you are in form editing it can be done relative easy, while in inline not so easy.
Best Regards
Tony
Edit: Sorry missed a the chapter.
Using beforeShowForm event you can disable all the five selects,
the in every change event for the select you can do the conditions what you want.
For this purpose you dan use dataEvents to bind a change function for every select.
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.
16:17

Hi Tony!
Thanks for your response.
This grid is using inline editing, however I have that working with a dataEvent in the editoptions. This has to do with the multiple search pop-up. The one you can keep adding search filters to, dynamically. Are you saying I can put a dataEvent call in the searchoptions and just reference the colModel::name field to have it update the search filters in the pop-up?
Most Users Ever Online: 715
Currently Online:
42 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66