GridViewRow.IsExpandable not working for child grids

5 posts, 0 answers
  1. Aeroth
    Aeroth avatar
    17 posts
    Member since:
    Oct 2010

    Posted 07 Feb 2012 Link to this post

    Hi Telerik Support,

    I've seen the post http://www.telerik.com/community/forums/silverlight/gridview/gridviewrow-isexpandable-not-working-for-child-level.aspx
    and I have the same issue. Could you show me how to disable (+) sign if the row does not have any child items for the nested child grids? Thanks!

    Regards,
    Aeroth Lin
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 08 Feb 2012 Link to this post

    Hello Aeroth,

    I would recommend you to run through our demos and blog posts for a reference.  

    Greetings,
    Maya
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. Aeroth
    Aeroth avatar
    17 posts
    Member since:
    Oct 2010

    Posted 08 Feb 2012 Link to this post

    Hi Maya,

    I don't have any xaml files so how can I set GridViewRow.IsExpandable for nested child grids programmatically?

    Regards,
    Aeroth Lin
  4. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 08 Feb 2012 Link to this post

    Hello Aeroth,

    There should be no problem to achieve the same behavior by defining everything in code-behind. What are the troubles that found on the implementation ? 

    Greetings,
    Maya
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  5. Aeroth
    Aeroth avatar
    17 posts
    Member since:
    Oct 2010

    Posted 08 Feb 2012 Link to this post

    Hi Maya,

    I've resolved the problem by handling child grid's RowLoaded event:

    private void _gridView_DataLoading(object sender, GridViewDataLoadingEventArgs e)
    {
    GridViewDataControl grid = sender as GridViewDataControl;
                 
                if (grid.ParentRow != null)
                {              
                    grid.RowLoaded += new EventHandler<RowLoadedEventArgs>(_gridView_RowLoaded);
                }
    }

    Regards,
    Aeroth Lin
Back to Top