Description:
DevExpress documentation says that invisible selected nodes can not be accessed, because they do not exist. However the ASPxTreeList seems to remember the keys of selected nodes, because selection is restored after collapse and expand a node. Why not provide the ability to access the selection collection in virtual mode?
Answer:
ASPxTreeList has an internal mechanism to save and restore node selection after an end-user collapses and expands nodes in a virtual mode. For this purpose, the control retains selected node keys within the ASPxTreeList.TreeDataHelper.SelectedKeys internal property. We cannot make this property public and do not recommend you use it, because at some stages of the control life-cycle the maintained information can be out-of-date.
If you need to get the invisible selected nodes we recommend that you remember the keys of selected nodes manually, e.g., by implementing a client-side array to track the selected keys using the client-side SelectionChanged event.
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hi Lana,
The SelectionChanged event does not provide the key of the node clicked on. Also the SelecionChanged event does not fire
for nodes that are checked automitically if the recursive mode.is enebled
Willem
Indeed, the SelectionChanged event argument does not provide information about selected or unselected nodes. Please refer to the following tickets for additional details:
ASPxTreeList - How to handle SelectionChanged event and get selected nodes
OnSelectionChanged - how do I no which node changed