RadGridView RowDetail

4 posts, 1 answers
  1. Priya Iyer
    Priya Iyer avatar
    15 posts
    Member since:
    Apr 2010

    Posted 12 Jul 2010 Link to this post

    Hi,

    I have a RadGridView and with RowDetailTemplate. In RowDetailTemplate I have another RadGridView with select column. How can I get selected columns from the child grid view? RowLoaded event for childgridview  only gives parent row with all child gridview row.
    Could you let me know is there any way to get only selected row from rowdetailstemplate?

    Thank you!

    Priya
  2. Answer
    Milan
    Admin
    Milan avatar
    1989 posts

    Posted 12 Jul 2010 Link to this post

    Hi Priya Iyer,

    There are several ways to do that depending on your scenario. 

    For example, if you would like to get the selected child items every time the selection in a child grid changes you could simply subscribe for SelectionChanged on the root grid. SelectionChanged is a routed event which means that SelectionChanged of the main grid will be raised if selection occurs on any of the child grids.

    // subscribe for SelectionChaged
    void gridView_SelectionChanged(object sender, SelectionChangeEventArgs e)
    {
        // selection has occurred on a child grid
        if (e.OriginalSource != this.myRootView)
        {
      
        }
    }


    Kind regards,
    Milan
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. Priya Iyer
    Priya Iyer avatar
    15 posts
    Member since:
    Apr 2010

    Posted 13 Jul 2010 Link to this post

    Hi Milan!

    Thank you! It works fine. I have another question with same GridView. Could you please tell me how can I get a loaded child row? and Item which binds with child row?

    Thanks in advance.

    Priya
  4. Priya Iyer
    Priya Iyer avatar
    15 posts
    Member since:
    Apr 2010

    Posted 13 Jul 2010 Link to this post

    Thanks Milan. I have figured it out.



    Thank you!
    Priya
Back to Top