RadTreeViewItem.RootItem not returning correct item

2 posts, 0 answers
  1. Will
    Will avatar
    1 posts
    Member since:
    Nov 2009

    Posted 17 Mar 2010 Link to this post

    The RadTreeViewItem.RootItem property used to return an item's highest ancestor node (as of version 2009.1103), but in the current version (2010.0309) it always returns a reference to itself. Does anyone else see this behavior?

    Here's a very simple example:
            <telerikNavigation:RadTreeView x:Name="tree"/> 
            <TextBlock x:Name="msg"/> 

    And the code behind:
            private void Window_Loaded(object sender, RoutedEventArgs e) 
                RadTreeViewItem item1 = new RadTreeViewItem() { Header = "item1" }; 
                RadTreeViewItem item2 = new RadTreeViewItem() { Header = "item2" }; 
                RadTreeViewItem item3 = new RadTreeViewItem() { Header = "item3" }; 
                // item3.RootItem returns item1 in 2009.1103 version (CORRECT) 
                // item3.RootItem returns item3 in 2010.0309 version (WRONG) 
                msg.Text = "item3.RootItem is " + item3.RootItem.Header.ToString(); 
                tree.ExpandAll(); // <-- This also doesn't seem to be working 
                item1.ExpandAll(); // <-- Neither does this 

  2. Tihomir Petkov
    Tihomir Petkov avatar
    576 posts

    Posted 22 Mar 2010 Link to this post

    Hello Will,

    Thank you for the feedback. The same problem you observed was recently reported by another user. It seems that with the 2010 Q1 release we have introduced a bug that affects the RadTreeViewItem.RootItem property. The issue is still not schedule for a specific release, but we will definitely get to it as soon as our schedule allows us. You can follow the status of the issue in our public issue tracking system via the link below:


    Best wishes,
    Tihomir Petkov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
Back to Top