Dear all,
In my application I use Radgrid and customized insert window which contains another Radgrid. The grid contains selection column and user can select multiple records. I have a problem when the user selects any records and close the window without saving. It looks list of selected items remains stored somewhere and when I open window again I have a problem. At first look it looks fine but if I click on 'Select All' checkbox nothing happened. I try to debug it JS and I see values in _selectedItemsInternal property, but it contains old values (which were selected for the first time before window close).
I execute JS function when window is closed. So I hope I can remove any selection in this, but I tested a lot of functions:
But nothing helps me and when I open it again I have always the same problem. The checkbox 'Select All' doesn't work. When I select records manually one by one then it works.
Do you have any idea what can be wrong with header checkbox or how to clean correctly old values.
Thank you,
Petr
In my application I use Radgrid and customized insert window which contains another Radgrid. The grid contains selection column and user can select multiple records. I have a problem when the user selects any records and close the window without saving. It looks list of selected items remains stored somewhere and when I open window again I have a problem. At first look it looks fine but if I click on 'Select All' checkbox nothing happened. I try to debug it JS and I see values in _selectedItemsInternal property, but it contains old values (which were selected for the first time before window close).
I execute JS function when window is closed. So I hope I can remove any selection in this, but I tested a lot of functions:
grid.clearSelectedItems();
grid.get_masterTableView().set_visible(
false
);
grid.get_masterTableView().set_dataSource([]);
$(
'[id$="'
+ grid.ID +
'_ClientState"]'
).val(
""
);
masterGrid.get_masterTableView().cancelInsert();
But nothing helps me and when I open it again I have always the same problem. The checkbox 'Select All' doesn't work. When I select records manually one by one then it works.
Do you have any idea what can be wrong with header checkbox or how to clean correctly old values.
Thank you,
Petr