Posted 22 February 2021, 5:12 pm EST
Hello,
I am using a wijmo listbox . In that I am using add, remove , update functions.
How can i restrict the listbox to be not empty, means there should be always a record present in listbox.
removeRecord() {
let lb = this.ListData.collectionView;
lb.items.splice(this.ListData.selectedIndex, 1);
lb.refresh();
this.ListData.selectedIndex = -1;
this.fullname = “”;
this.saveListBoxData();
}
displayListBoxValueInTextField(listBox) {
this.fullname = listBox.selectedValue;
}
Thank you.
Regards,
Nivisha Panwar