Hierarchical selection of parents whose childs are selected

2 posts, 0 answers
  1. Vinayak
    Vinayak avatar
    1 posts
    Member since:
    May 2015

    Posted 22 May 2015 Link to this post

    Hello experts,

    I have one requirement in grid view where, I wanted to show parents as selected whose child is selected. For e.g. I have one hierarchical structure where

    Parent 1 has one child and this child has one more child (Grandchild) likewise....

    Now when I select Grandchild or child, its respective parents should also get selected/highlighted.  

     So, I have following questions-

    1) Is there any property/method available which I can use it in Xaml to achieve this?

    2) If not, then what will be the recommended approach to do this (sample example, with code will be appreciated)?

     

    Thanks in Advance,

    Vinayak

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 22 May 2015 Link to this post

    Hi Vinayak,

    As to your questions:
    1. There is not such a property or any built-in option. You can refer to the ​Selection section in our online documentation.
    2. You can try extending the existing functionality by subscribing for the SelectedChanged event on each details level and handle it as per your requirements. 

    You can also check the following forum thread: RadGridView - Hierarchy - Selected Parents and Childs.

    Regards,
    Dimitrina
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top