Hi Everyone,
I have been trying to accomplish something that should be rather simple.
I have a RadWindow with a treeview that allows users to select items by checking nodes .
When the RadWindow closes it is not destroyed so that next time they open the window the treeview does not need to reload but I want to uncheck all their previous selections.
I can manage to do this using the following script in the ASPX code:
I have been trying to accomplish something that should be rather simple.
I have a RadWindow with a treeview that allows users to select items by checking nodes .
When the RadWindow closes it is not destroyed so that next time they open the window the treeview does not need to reload but I want to uncheck all their previous selections.
I can manage to do this using the following script in the ASPX code:
var nodes = tree.get_checkedNodes();
for (var i = 0; i < nodes.length; i++) {
var node = nodes[i];
node.set_checked(false);
}
This script is called when either the OK or Cancel button is clicked, but if the user clicks the "X" this script is not run.
Also the rest of our application uses separate script files instead of embedding the javascript in the ASPX page.
I have tried adding a beforeonclose event handler but that appears to be too late in the cycle.
Please could someone suggest a way to accomplish this.
many thanks
Antony