我有一个看起来像这样的可编辑列定义......
{
name: 'recType',
label: 'recType',
index: 'recType',
width: 100,
fixed: true,
keys: true,
editable: true,
edittype: "select",
editoptions: {value: rectypelist},
stype: 'select',
formatter: 'select'
}
注意:“rectypelist”是 键:值对的列表...例如,
1:apple
4:pear
2:orange
3:banana
我需要能够按列表框条目的值(即,已正确显示在列中)对该列进行排序。
正如上面配置的那样,排序是在列表框条目的“键”上执行的,而不是条目的“值”(条目的“值”是实际显示在网格中的内容)。
- 因此,当用户对列进行排序时,他们没有收到预期的行为。
问题:如何配置此列定义,以便对列表框条目的“显示”值而不是“键”值执行排序?
谢谢你的帮助