3 Answers, 1 is accepted
Hello, David,
VirtualGridTableElement offers the IndentColumnWidth property which is expected to control the width of the indent column.
I believe that this is the property you are looking for.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Hi Dess,
The IndentColumnWidth property sets the first column's width - the VirtualGridExpanderItem. It does not indent the RowContainer.
((Telerik.WinControls.UI.VirtualGridTableElement)(this.radVirtualGrid1.GetChildAt(0).GetChildAt(0))).IndentColumnWidth = 60;
I've also tried setting the various Margin and the half dozen Border properties without success.
Attached is an altered image of what I'm asking:
Hello, David,
The provided screenshot is greatly appreciated.
In order to achieve a similar design, it is necessary to subscribe to the RowFormatting event and apply left margin for the VirtualGridDetailViewCellElement that hosts the child level:
private void radVirtualGrid1_RowFormatting(object sender, VirtualGridRowElementEventArgs e)
{
if (e.RowElement.DetailsElement != null)
{
e.RowElement.DetailsElement.Margin = new Padding(50, 0, 0, 0);
}
}
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik