Row details on demand

3 posts, 0 answers
  1. Getulio
    Getulio avatar
    9 posts
    Member since:
    Jan 2013

    Posted 20 Feb 2013 Link to this post

    Hi,

    I'm using GridView biding with an collection property in my view model.

    Now, I need to explode row details.
    The content of my row detail depends on witch cell was clicked.

    I will have another GridView, inside row detail, but this GridView need to be bindend with another property in the same view model.
    This property will be populated with data that depends on wich cell was selected.

    Can you help me?
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1216 posts

    Posted 21 Feb 2013 Link to this post

    Hi,

    Any time some row's details get expanded or collapsed, the RowDetailsVisibilityChanging event gets fired. So that you can subscribe to it and load your data in the handler. Here is the support section about RowDetails that provides some more extensive information on this matter.

    All the best,
    Ivan Ivanov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Getulio
    Getulio avatar
    9 posts
    Member since:
    Jan 2013

    Posted 21 Feb 2013 Link to this post

    Hi Ivan,

    Thak you for your response.
    I'm learning too much with your link.

    But, I need one more help.
    Row and row detail template share the same context.
    In my row detail, I'm using another GridView and I want to bind this GridView with a property in view model.
    How can I set ItemsSource of this GridView binding with a property in view model?

    Regards,
Back to Top