Posted 24 December 2019, 9:24 am EST
I tried 2 way to do this. first one is ```
grid.formatItem.addHandler((s, e: wjcGrid.FormatItemEventArgs) => {
if (e.panel.rows[e.row]._data[alt].controlType === ‘DropDown’){
const theComboBox = new input.ComboBox(e.cell, {
itemsSource: items
});
}});
but it loosing a control while grid update and second one is
grid.formatItem.addHandler((s, e: wjcGrid.FormatItemEventArgs) => {
if (e.panel.rows[e.row]._data[alt].controlType === ‘DropDown’){
const col = s.columns[e.col];
col.dataMap = [‘Washington’, ‘Miami’];
}});
this generates continues update on grid and it's for column. can anyone suggest me how could I put dropdown on single cell, not on entire column.