function onCreated(args): void {
let len = document.getElementsByClassName("e-listbox-tool")[0].childElementCount;
for (var i = 0; i < len; i++) {
(document.getElementsByClassName("e-listbox-tool")[0].children[i] as HTMLElement).style.display = "none";
}
(document.getElementsByClassName("e-listbox-tool")[0] as HTMLElement).style.border = "none";
} |
refreshBtn.element.onclick = (): void => {
listObj1.dataSource = [] // clear the listbox1 items
listObj2.dataSource = [] // clear the listbox2 items
listObj1.dataBind();
listObj2.dataBind();
} |