Ok, so we’ve got the latest JQGrid grid working beautifully, but the editoption value param doesn’t seem to do the required replaces in the grid values. This did work in a previous version. The EditForm works perfectly.
...{
name: 'Field1',
index: 'Field1' ,
editable: true,
edittype:'select',
editoptions:{
dataUrl: 'lookup.dasl?EntityAttributeID=1345',
value: {1:'ABC',2:'CDE',3:'EFG'}
},
}...
I find non-logical that you use both
dataUrlandvalueparameters ofeditoptions. I verified in both 3.7.1 and 3.6.5 versions of jqGrid in grid.common.js in thecreateElfunction there are such code fragment:So if you define
dataUrlthenvalueparameters ofeditoptionswill be ignored.UPDATED: The usage of
formatter:'select'is not important for the question which you asked. If you send back in the response ondataUrlthe values 1, 2 or 3 (the keys) instead of the values ‘ABC’, ‘CDE’ and ‘EFG’ then you should useformatter:'select'. If all cases thevalueparameter ofeditoptionswill be ignored if you use alsodataUrl.