Forum


16:44

Let me first explain a sample scenario:
I have 6 columns of data.(A, B, C, D, E, F)
I have my jqGrid setup for inline editing. Each of these columns performs a dataUrl in the editoptions param.
Column A is a standard lookup, however the remaining columns depend on the select:value of column A. Right now I am using beforeEditCell to capture the rowID of the selected/edited row and I call $.getJSON and pass that rowID to my controller to identify the value of Column A and then perform the lookup for Columns B, C, D, E, F depending on what column's cell the user is trying to edit.
Is there a better way to do this? Perhaps a way when a user goes to edit a cell I can tell the grid to get the value of Column A and pass that to the lookup call?
20:11

Moderators
30/10/2007

Hello,
You can use a dataEvent object to define a event for every select.
More you can find here:
http://www.trirand.com/jqgridw.....ditoptions
Best 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.
22:54

Tony:
Yes, I understand that. However in the dataEvent, I would have to pass the value of ColumnA into the dataEvent for columnB so that my results from that dataEvent would be filtered based on the value of ColumnA.
This was pretty critical and I had to abandon this. Right now I limit the grid display to a specific ColumnA value so that all my other lookup columns can already know what the id of my old ColumnA.
Thanks though!
09:22

Moderators
30/10/2007

Hello,
Look here:
http://www.trirand.com/blog/?p.....t-dropdown
The trick is maybe if you change the select in A to be to set additional attribute in B which is the value from A and etc.
Best Reagrds
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:05

Moderators
30/10/2007

Hello
Using dataEvents you can attach what you want to what you want if I understand the problem ok.
Best 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.
Most Users Ever Online: 715
Currently Online:
61 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