parent node non selectable

2 posts, 0 answers
  1. Adrian Pay
    Adrian Pay avatar
    28 posts
    Member since:
    Nov 2009

    Posted 30 Nov 2011 Link to this post

    how can i be able to make the parent node of the treeview non selectable. 

    + Parent <-- non selectable
    |-----item 1 <-- selectable
    |-----item 2 <-- selectable

    and what i mean by non selectable is even when i hover on it, there is no hover animation as if it was disabled but not greyed out.

  2. Petar Mladenov
    Petar Mladenov avatar
    3162 posts

    Posted 05 Dec 2011 Link to this post

    Hi Adrian Pay,

     In order to prevent the selection you can use the PreviewSelectionChanged event and set e.Handled = true if the "clicked" item should not be selected. As for the MouseOver/Selection colors you can check out this forum and the attached project in it. Please let us know if this helped you.

    All the best,
    Petar Mladenov
    the Telerik team

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

Back to Top