RadGrid with Master-Details

2 posts, 0 answers
  1. Andy
    Andy avatar
    13 posts
    Member since:
    Apr 2014

    Posted 18 May 2014 Link to this post

    Hi Friends,

    I am using the Telerik RadGridView. I need to show a list of master records and on expansion I need to show the detail of child records. Do you have any such sample. What will be the class structures with MVVM approach.

    Right now I have a - GridViewModel - that has an ObservableCollection of GridRowViewModels (master records). GridRowViewModels is set to the ItemsSource property of the Gridview. 

    Now on expansion, I need to display an ObservableCollection that I am exposing through GridRowViewModel in the expanded section.

    Please help.

  2. Boris
    Boris avatar
    276 posts

    Posted 20 May 2014 Link to this post

    Hello Andy,

    I attach a sample project that suggests a possible approach for using MVVM and how you can set the RowDetailsTemplate property of the GridView.

    For more information you can check:
    - our Row Details documentation section.
    - our Hierarchical GridView documentation section.
    - our demos for WPF / Silverlight (some are in the Hierarchy section).
    - our SDK examples.

    I hope this helps.

    Boris Penev
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top