Hi,
If I execute this code in the OnCommand client-side event :
var elems = sender.get_masterTableView().get_dataItems();
for(var i=0;i<elems.length;i++)
{
elems[i].set_selected(false);
}
or this code : sender.get_masterTableView().clearSelectedItems()
it seems to unselect the dataitem in memory but not uncheck the checkbox html control.
If i get the html checkbox with get_element() and I unselect him, I also have a problem when the user want to click a chekbox previously selected on a other page : he need to click twice on an unchecked checkbox to check ...
Is there a way to simple solve this problem ?
I need to clear all checked checkbox when paging (full ajax), and keep the item checked in memory. When the user return on a page where checkbox are previously checked, I need to check them automatically.
thanks for you help !
Jérôme
If I execute this code in the OnCommand client-side event :
var elems = sender.get_masterTableView().get_dataItems();
for(var i=0;i<elems.length;i++)
{
elems[i].set_selected(false);
}
or this code : sender.get_masterTableView().clearSelectedItems()
it seems to unselect the dataitem in memory but not uncheck the checkbox html control.
If i get the html checkbox with get_element() and I unselect him, I also have a problem when the user want to click a chekbox previously selected on a other page : he need to click twice on an unchecked checkbox to check ...
Is there a way to simple solve this problem ?
I need to clear all checked checkbox when paging (full ajax), and keep the item checked in memory. When the user return on a page where checkbox are previously checked, I need to check them automatically.
thanks for you help !
Jérôme