All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
protected
void
RadGrid1_PreRender(
object
sender, EventArgs e)
{
HideExpandColumnRecursive(RadGrid1.MasterTableView);
}
public
HideExpandColumnRecursive(GridTableView tableView)
GridItem[] nestedViewItems = tableView.GetItems(GridItemType.NestedView);
foreach
(GridNestedViewItem nestedViewItem
in
nestedViewItems)
(GridTableView nestedView
nestedViewItem.NestedTableViews)
if
(nestedView.Items.Count == 0)
TableCell cell = nestedView.ParentItem[
"ExpandColumn"
];
cell.Controls[0].Visible =
false
;
cell.Text =
" "
nestedViewItem.Visible =
(nestedView.HasDetailTables)
HideExpandColumnRecursive(nestedView);