Posted 12 January 2021, 11:18 pm EST - Updated 3 October 2022, 5:48 am EST
selected 1st list box value added correctly in 2nd list box
but 2nd list box selected value clicked on remove this value is not added in 1st list box.
in debugger _view data not update current item check below screenshot.
removeColumn=() =>{
debugger;
var item = this.TanantData.currentItem,
index = this.columnsAvailable.currentPosition;
if (item) {
this.TanantData.remove(item);
this.columnsAvailable.sourceCollection.splice(Math.max(0, index), 0, item); this.columnsAvailable._needRefresh; this.columnsAvailable.moveCurrentTo(item);
}
}
addColumn=()=> {
debugger;
let arr=;
arr.push(this.columnsAvailable.currentItem);
var item = this.columnsAvailable.currentItem,
index = this.TanantData.currentPosition;
if (item) {
this.columnsAvailable.remove(item);
this.TanantData.sourceCollection.splice(Math.max(0, index), 0, item);
this.TanantData.moveCurrentTo(item);
}
}