I have a tree with nodes, Checkboxes are enable as Bi-State, selection works fine, however I can't clear the selection using the supplied command:
WebDataTree1.ClearSelection();
On any other command.
Without Checkboxes all works quite well
Sorry for the late reply, but it worked, thank you.
Hi quantom,
Please let me know if you need further assistance with this matter.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://es.infragistics.com/support
The ClearSelection() method clears the selected nodes in the tree and not the checked ones. These selected and checked nodes are kept in different collections.
Here is some sample loop for unchecking all checked nodes:
while (WebDataTree1.CheckedNodes.Count > 0 ) { WebDataTree1.CheckedNodes[0].CheckState = Infragistics.Web.UI.CheckBoxState.Unchecked;}
You can find more useful information regarding the WebDataTree at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/
Please let me know if this helps.