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?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top