I have a master/detail RadGrid that is using the detail row footer to display a sum of the detail rows. What I need to do is to display only the detail row footer row values but hide all of the actual detail rows. How can I do this?
Thanks,
Steve Holdorf
1 Answer, 1 is accepted
0
Eyup
Telerik team
answered on 30 Aug 2012, 07:25 AM
Hello Steve,
Could you please try the following approach and let me know if it helps you?
foreach (GridNestedViewItem nestedViewItem in nestedViewItems)
{
foreach (GridTableView nestedView in nestedViewItem.NestedTableViews)
{
foreach (GridDataItem dataItem in nestedView.Items)
{
dataItem.Visible = false;
}
if (nestedView.HasDetailTables)
{
HideDetailItems(nestedView);
}
}
}
}
That should do the trick.
Kind regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.