If i have a these select options…
var OptionsOnTable = "1:OptionA extra text;2:OptionB extra text;3:OptionC extra text;"
var OptionsOnDialogForm = "1:OptionA;2:OptionB;3:OptionC;"
On this column…
{name:"col2",index:"col2",editable:true,formatter:"select",edittype:"select"},
editoptions:{value: OptionsOnTable}
What would be the best way to go about changing the option text on the dialog form but leaving the option text on the table as is?
If you use
formatter: "select"then the texts displayed in the grid based offormatoptions.valueoreditoptions.value. On the other side it will be used onlyeditoptions.valueduring form editing. So you can specify bothformatoptions.valueandeditoptions.valuefor one column. It will solve your problem.For example I used the following definition of the
ship_viacolumn in the demo:So one sees three different textes in selects: one in grid, another during editing and the third one in the searching dialog:
and