Hi,
I am using editor of type select in one of the columns of my grid. Noticed some strange behavior while changing options , provided more details below:
Here is my JSON data returned for the Options:
var csPkList = [{"id":"35170","pack":"XXS","qty":1},{"id":"33125","pack":"XS","qty":1},{"id":"33225","pack":"S","qty":2},{"id":"33325","pack":"M","qty":2}]
I have three columns with dataIndxs (id,pack,qty), having 'id' column as hidden one.
and here is how I defined editor on 'pack' column.
dataIndx: 'pack',
editor : {
type: 'select',
labelIndx:'pack',
valueIndx:'id',
dataMap: ['qty'],
options: function (ui) {
return csPkList;
}
}
When I change the select options in 'pack' column from XXS to S, qty column gets updated from 1 to 2 and it works normally. But when I change options from XXS to XS or S to M, the options are not been changed, they are showing up previous values. Noticed this is because XXS and XS has same qty value, S and M has same qty value.
Can you please advice ?