During implementation different own styles, I've noticed some confusing moments, and I could find the explanation in docs.
Working with Padding Border and Margin expected structure was as it is described in a picture. Row element Content contains Cell element.

1)[RowBorders]
After format implementation Cells cover Row border.

2)[Row Padding]
In case of adding padding to the row, cells were not surrounded by some row spaces, but only size of row and it's cells were increased.

3)[Row and Cell Margin]
Setting Margin to the row or cell, adds margin to the group of rows or cells. (there is no margin between rows and cells)


3.1) [Cell Margin Right side]
As you can see from the previous picture margin wasn't added to the group of cells on the right side.
4) Is there any docs about BorderThickness using, because only way of changing of changing Thickness of each border i see as BorderTopWidth, BorderBottomWidth, BorderLeftWidth, BorderRightWidth.
I would appreciate if you share docs where I can understand the concept of this implementations.
Thank You!
Working with Padding Border and Margin expected structure was as it is described in a picture. Row element Content contains Cell element.
1)[RowBorders]
After format implementation Cells cover Row border.
private void RadGridView1_CellFormatting(object sender, CellFormattingEventArgs e)
{
e.CellElement.DrawFill = true;
e.CellElement.BackColor = Color.Orange;
e.CellElement.NumberOfColors = 1;
e.CellElement.BorderColor = Color.Yellow;
e.CellElement.BorderWidth = 3;
e.CellElement.DrawBorder = true;
e.CellElement.BorderBoxStyle = Telerik.WinControls.BorderBoxStyle.SingleBorder;
e.CellElement.BorderGradientStyle = Telerik.WinControls.GradientStyles.Solid;
}
private void RadGridView1_RowFormatting(object sender, RowFormattingEventArgs e)
{
e.RowElement.DrawFill = true;
e.RowElement.BackColor = Color.GreenYellow;
e.RowElement.NumberOfColors = 1;
e.RowElement.BorderColor = Color.Aqua;
e.RowElement.BorderWidth = 3;
e.RowElement.DrawBorder = true;
e.RowElement.BorderBoxStyle = Telerik.WinControls.BorderBoxStyle.SingleBorder;
e.RowElement.BorderGradientStyle = Telerik.WinControls.GradientStyles.Solid;
}
In case of adding padding to the row, cells were not surrounded by some row spaces, but only size of row and it's cells were increased.
e.RowElement.Padding = new Padding(20,20,20,20);
Setting Margin to the row or cell, adds margin to the group of rows or cells. (there is no margin between rows and cells)
e.RowElement.Margin = new Padding(20,20,20,20);
e.CellElement.Margin = new Padding(10, 10, 10, 10);
As you can see from the previous picture margin wasn't added to the group of cells on the right side.
4) Is there any docs about BorderThickness using, because only way of changing of changing Thickness of each border i see as BorderTopWidth, BorderBottomWidth, BorderLeftWidth, BorderRightWidth.
I would appreciate if you share docs where I can understand the concept of this implementations.
Thank You!