ListView inside RadGridView

2 posts, 0 answers
  1. Rohit
    Rohit avatar
    1 posts
    Member since:
    Nov 2015

    Posted 28 Nov 2015 Link to this post

    I added a ListView(Horizontal) inside a RadGridView such that every RadGrid row will have different number of ListView Items.How can I achieve this using MVVM (through view-model) ?
  2. Stefan X1
    Stefan X1 avatar
    482 posts

    Posted 02 Dec 2015 Link to this post

    Hi Rohit,

    As each collection would be specific for each row, I am afraid that you need to define different instances of this collection for each row. So, more appropriate in this case would be to define a child collection for each item present in the source collection of RadGridView, populate it with the number of elements needed and bind the ListView's ItemsSource to it.

    I prepared a small sample as a demonstration of the approach. I hope it fits your requirements.

    Note however, that such approach of using the control is not quite appropriate. I suggest you taking a look at the RowDetails topic for more information on the recommended usage of RadGridView in such scenarios.

    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. DevCraft R3 2016 release webinar banner
Back to Top