Managing nodes that are derived from TreeListNode is a bit tedious atm.
* the CreateCustomNode event handler doesn't have additional information about the type of node that should be created
* extra properties of the nodes can only be set after the CreateCustomNode event handler has finished. In between, FocusedNodeChanged may be raised with the node, which then might be missing some important properties.
Proposed Solution:
Add another argument to XtraTreeList::AppendNode(), say, "object userData".
This reference would then be added to CreateCustomNodeEventArgs.
This means that users can pass arbitrary arguments to the CreateCustomNode event handler, which would solve the issues outlined above.
An even nicer solution would be to offer another AppendNode() method that just takes an instance of a TreeListNode. Not sure how much trouble that could cause internally though.
Working around this issue is pretty annoying, so it would be cool if you could do something about it.
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.
Hello Frank,
Thank you very much for the suggestion. We'll consider introducing this functionality in future updates of XtraTreeList.
Thanks,
Stan.
Hello Frank,
A new overloaded AppendNode method with a tag parameter has been created. A tag parameter is also available among the CreateCustomNodeEventArgs arguments of the CreateCustomNode event.
Happy New Year!
Thanks,
Nick
--------------------
Check if Search Engine is able to answer questions faster than I do!