I have an editable column definition that looks like this...
{
name: 'recType',
label: 'recType',
index: 'recType',
width: 100,
fixed: true,
keys: true,
editable: true,
edittype: "select",
editoptions: {value: rectypelist},
stype: 'select',
formatter: 'select'
}
Note: "rectypelist" is a list of key:value pairs...e.g.,
1:apple
4:pear
2:orange
3:banana
I need to be able to sort this column by the listbox entry's value (i.e., which is already correctly displayed in the column).
As it is configured, above, the sort is performed upon the listbox entry's "key", rather than the entry's "value" (the entry's "value" is what actually displays in the grid).
-So, therefore, when the user sorts the column they do not received the expected behavior.
QUESTION: How can I configure this column definition so that the sort is performed on the listbox entry's "display" value, rather than the "key" value?
Thanks for any help