Single Click Expand

2 posts, 1 answers
  1. MiddleTommy
    MiddleTommy avatar
    163 posts
    Member since:
    Nov 2009

    Posted 27 Jan 2012 Link to this post

    I really like the single click to expand feature. I would like even more a singleclick to expand and a double click to collapse. Items that are already expanded when selected collapse. This seems wrong to me. You usually select an item to view it not collapse it.
  2. Answer
    Petar Mladenov
    Petar Mladenov avatar
    2882 posts

    Posted 01 Feb 2012 Link to this post

    Hi MiddleTommy,

     I understand your requirement. You can customize the RadTreeView like so:

    <telerik:RadTreeView IsExpandOnSingleClickEnabled="True" ItemClick="RadTreeView_ItemClick" x:Name="tree">
                <telerik:RadTreeViewItem Header="Item a">
                    <telerik:RadTreeViewItem Header="Item b" />
    private void RadTreeView_ItemClick(object sender, Telerik.Windows.RadRoutedEventArgs e)
               this.tree.IsExpandOnSingleClickEnabled = true;
               if ((e.Source as Telerik.Windows.Controls.RadTreeViewItem).IsExpanded == true)
                   this.tree.IsExpandOnSingleClickEnabled = false;
    Is this suitable for you?
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top