我有一个带有可编辑列的jGrid,该列名为some_other_id
,其中包含具有键/值对1:A,2:B,3:C
的下拉选择框。我想让每一行中所选的选项显示选择的文本值(例如“ A”,“ B”,“ C”),而不是ID(1、2或3)。它目前显示ID。
colModel :[
{ label: 'ID', name:'id' },
{
label: 'Some Other ID',
name: 'some_other_id',
editable: true,
align: 'center',
edittype: "select",
editoptions: {value:"1:A,2:B,3:C"}
},
],
如何使其显示editoptions
中选定的文本值?