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
1425
XamDataTree, select a node programitically
posted

Using XamDataTree 12.1, I'm trying to select a tree node based on a value. Attached is my code. IsExpanded and IsActive works fine, however, IsSelected does not work.

Can you offer assistance or suggestions?

Parents
  • 12875
    posted

    Hi, 

    Just looking over the code snippet you attached, I have a question about your comment that you had to rebind the ItemsSource. How and where are you binding the XamDataTree ItemSource?  Are you indicating that the tree.ItemSource is null if you don't rebind?

    One other question I have is, have you set the NodeSelection property for the XamDataTree? By default it would be Single but if you have set it to None, selection would not be possible.

    It would be helpful if you could provide a small sample that includes your xamDataTree and its data source. If you could, please zip it up and attach it to this thread.

Reply Children