Hi,
I have a column use "type: 'select'" to generate a picklist. But as I used, if I choose a value in this picklist and save this value on cell, then I open picklist again, the value which I save didn't be choose, the first value in the picklist will be choose.
I check some demo which used picklist have this problem too.
This is my column:
{ title: "Product", dataIndx: "product",width: 130,
editor: {
type: "select", options: productArray,style: 'width:230px;'
},
render: function (ui) {
return (ui.cellData.split(':')[0])
}
}
And this is my pick list source:
var productArray = [];
for(var i = 0; i < productList.length; i++ ){
var idVals = productList[i].Name+'-'+ productList[i].Description + ':' + productList[i].Id;
var nameVal = productList[i].Name+'-'+productList[i].Description;
var obj = {}; //create an empty object
obj[idVals] = nameVal; //create a new property with a dynamic key and assign to value.
productArray.push(obj); //push onto the productArray
}
So do we have solution to handle this problem? When open the picklist the current value will be choose as highlight not the first picklist value.
Thank you!