Hello,
I have encountered with a strange problem.
I have a 2 list boxes, one source second a destination.
all the items have checkboxes.
Also i have 2 button: "select all","unselect all" on eatch list box header.
The code for the buttons:
The problem:
If i check an any item on one of the listboxes and then transfer it to another listbox and then i click on the unselect all button,
then the item that was transfered (the item transferd when it was checked already) still remain check. the button doens't influence
on the item.
Same problem if i reorder items and then try to check them all with the button.
any ideas?
Thanks
Oren
I have encountered with a strange problem.
I have a 2 list boxes, one source second a destination.
all the items have checkboxes.
Also i have 2 button: "select all","unselect all" on eatch list box header.
The code for the buttons:
function selectAllClick(sender) {
var listBox = $find(sender);
var items = listBox.get_items();
items.forEach(function(itm) { itm.set_checked(true); });
}
function unSelectAllClick(sender) {
var listBox = $find(sender);
var items = listBox.get_items();
items.forEach(function(itm) { itm.set_checked(false); });
}
The problem:
If i check an any item on one of the listboxes and then transfer it to another listbox and then i click on the unselect all button,
then the item that was transfered (the item transferd when it was checked already) still remain check. the button doens't influence
on the item.
Same problem if i reorder items and then try to check them all with the button.
any ideas?
Thanks
Oren