This is a migrated thread and some comments may be shown as answers.

GridViewRow.IsExpandable not working for child grids

4 Answers 105 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Aeroth
Top achievements
Rank 1
Aeroth asked on 08 Feb 2012, 02:51 AM
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

4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 08 Feb 2012, 07:06 AM
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 >>
0
Aeroth
Top achievements
Rank 1
answered on 08 Feb 2012, 07:50 AM
Hi Maya,

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

Regards,
Aeroth Lin
0
Maya
Telerik team
answered on 08 Feb 2012, 08:05 AM
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 >>
0
Aeroth
Top achievements
Rank 1
answered on 08 Feb 2012, 09:01 AM
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
Tags
GridView
Asked by
Aeroth
Top achievements
Rank 1
Answers by
Maya
Telerik team
Aeroth
Top achievements
Rank 1
Share this question
or