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

Displaying a list within RadGridView

1 Answer 254 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Julian
Top achievements
Rank 1
Julian asked on 15 Jun 2015, 06:24 PM

Hi and thank you in advance for your help,

I have a custom object, User, which contains a list of custom objects, List<Topic>. Each Topic has two strings. Currently I have my ItemsSource bound to an observable collection of Users, and it displays the ID and Name correctly. However, I want it also to display each user's list of Topic Names. For instance, user jwilson has a list of topics with names World News, Canadian News,.. etc. So for each row, there would be the name, ID, and the list of Topic Names in an expandable. 

Would I have to use hierarchical gridview for this? Or is there a simpler way?

Thanks for your help,

 Julian

 

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 16 Jun 2015, 10:44 AM
Hello Julian,

Thank you for writing.

Based on your description I understand that you would need to display hierarchical data in RadGridView, in this case, I think that RadGridView in object relational mode could fit in your scenario. Please check the articles in the following section of our documentation as they provide detailed information and examples of how hierarchical data can be populated in RadGridView: Hierarchical Grid.

I also created an example project which I hope would get you going. Besides the project I am also sending you a gif file showing the result on my end.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
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
Julian
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or