Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1540
Please Help in understanding XamDataTree
posted

The docs for InitializeNode event says "This event is raised when a XamDataTreeNode is created."

I've been monitoring this event in the debugger (VS2010 & Infragistics 11.2) and it appears this event only gets raised as a node comes into view.  This implies that a node only gets created when ever it comes into view.

On the other hand, the ScrollNodeIntoView Method says: "Scrolls a XamDataTreeNode into the viewable area.".

My dilemma is: Is nodes are created only when they are in view, how is it that ScrollNodeIntoView does what the documentation says it does?

As you can see, I need a better understanding of the XamDataTree.

Is there any documentation (Articles, etc.) that would provide better insight into the operation of XamDataTree?

 

Parents
  • 34510
    Offline posted

    Hi jgreene274,

    Whenever something tries to access the data within a node, the XamDataTree will create the node if it hasn't been created yet.  So for your question, in order to use the ScrollNodeIntoView method you need to supply a valid XamDataTreeNode object. When you search for that node it's data is accessed and if it hasnt been created yet, the tree will create the node and trigger the InitializeNode event. You can then use the node in the scroll method.

    You can find more information about the XamDataTree here:
    http://help.infragistics.com/NetAdvantage/Silverlight/2011.2/CLR4.0/?page=xamDataTree.html

    Let me know if you have any questions.

Reply Children