This is a migrated thread and some comments may be shown as answers.

Hierarchical selection of parents whose childs are selected

1 Answer 82 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Vinayak
Top achievements
Rank 1
Vinayak asked on 22 May 2015, 07:13 AM

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

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 22 May 2015, 01:45 PM
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
Tags
GridView
Asked by
Vinayak
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or