Scroll bar problem

3 posts, 0 answers
  1. Ye HaoChen
    Ye HaoChen avatar
    27 posts
    Member since:
    Nov 2009

    Posted 07 May 2013 Link to this post


    This is treeview code:
    <telerik:RadTreeView Grid.Row="2" IsRootLinesEnabled="False" IsLineEnabled="True" ItemsSource="{Binding DisplayDataList}" PreviewSelectionChanged="RadTreeView_PreviewSelectionChanged" telerik:StyleManager.Theme="{StaticResource MetroStyle}" FontFamily="{StaticResource font_global}" HorizontalContentAlignment="Stretch">
    <HierarchicalDataTemplate ItemsSource="{Binding TreeNodeList}">
    <TextBlock FontSize="16" Text="{Binding TreeNodeID}" />

    And this is tree node modle code:
    public class AccountTreeNode
            private Object treeNodeObject;
            public Object TreeNodeObject
                get { return treeNodeObject; }
                set { treeNodeObject = value; }
            private Type treeNodeType;
            public Type TreeNodeType
                get { return treeNodeType; }
                set { treeNodeType = value; }
            private ObservableCollection<AccountTreeNode> treeNodeList;
            public ObservableCollection<AccountTreeNode> TreeNodeList
                get { return treeNodeList; }
                set { treeNodeList = value; Notify("TreeNodeList"); }

    In the case of treeview's scrollbar displayed. The scrollbar will be uncontrolled movement when clicked one tree node in the treeview.
    And tree node can be selected more than one.

    If the scroll bar isn't displayed, the above problems would not have occurred.

  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 10 May 2013 Link to this post

    Hello Ye HaoChen,

    Unfortunately I'm not sure how to reproduce this issue and this is why I can't tell for sure what might be causing it. This is why I attached a sample solution which you can modify to better reproduce the issue.

    Also, please consider apply UI Virtualizaiton on the RadTreeView control if you're displaying a large amount of items.

    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
  4. Ye HaoChen
    Ye HaoChen avatar
    27 posts
    Member since:
    Nov 2009

    Posted 13 May 2013 Link to this post

    My WPF radcontrol's version is 2012 SP1.
    This is a very early version. Perhaps you fixed it in a later version.

    And thank you for your suggestion. 

Back to Top