Displaying a list within RadGridView

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

    Posted 15 Jun 2015 Link to this post

    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

     

  2. Hristo
    Admin
    Hristo avatar
    714 posts

    Posted 16 Jun 2015 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top