I`m using edittype “select” in jqGrid.
In it CntId (a unique number for the State – IDENTITY field) and the name of the state.
colModel: [
,
{name: "CntId",index: "CntId",xmlmap: "CntId",resizable:false,editable:true,width:80,edittype:"select",editoptions:{value:"1:БългариÑ;2:РуÑиÑ"}},
]
Why after loading jqGrid (acting url), is displays Id (CntId) of the State and not its name?
In the query for my jqGrid, I have to do a LEFT JOIN to get the name of the state (or add LEFT INNER JOIN)).
This leeds to heavy requests for receiving the values for the combobox to be displayed
(for example, the name of state).
It is also completely unnecessary, because the values into the combobox are match with the value of
key field-value of a field which displays.
In other words in a column edittype “select” should be displayed accordingly lookup field(shown in array value).
For me after the jqGrid loaded based on the value of field CntId must displays the name of the respective State
(using the array value from editoptions) with the matching key (CntId).
By the way, when adjust the combobox, everything is working correctly.In other words in jqGrid is dispalyet the value
chosen by select(displays the name of the state and not the CntId)
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top