I have a listgrid with dropdown column (select), here the values for drop down is populated from backend, dynamically .
The code which I used to achieve looks like this
isc.ListGrid.create({
…
…
{name: “partycode_name”, ID: “partycode_name”, title: “Customer/Prospect”,
editorType: “comboBox”, width:150,
editorProperties:
{
textMatchStyle: “substring”, optionDataSource: dataSource_for_dddw,
valueField: “displaycode”, displayField: “displayname”,
pickListFields: [{name:“displayname”,title:“Partyname”},{name:“displaycode”,title:“Partycode”}],
pickListWidth:250, pickListHeight:100,
autoFetchData: true, filterLocally:true,
showAllRecords:true,
},
prompt:“Enter the Party”},
…
…
})
When i click the column, the list is displayed with both display values and data values.
After I select one of the value from the list, display value is shown at that time,internally it sets data value to that column.
But when i navigate to next row in my listgrid, display value gets changed, and data value is shown in that dropdown column.
I want to show display field value always in the dropdown column, not the data value.
Please help me to sort out this
Thanks in advance
A.G.Dhivya.