Hi,
I insert a table into RadDocument, then i want to set static width to that table and i canĀ“t.
This is my code:
Thanks for your service.
I insert a table into RadDocument, then i want to set static width to that table and i canĀ“t.
This is my code:
var columns = (from c
in
grid.Columns.OfType<GridViewBoundColumnBase>()
where c.IsVisible
orderby c.DisplayIndex
select c).ToList();
var widthTable = 0f;
foreach
(var col
in
columns )
{
widthTable += (
float
)col.Width.DisplayValue ;
}
Table table =
new
Table();
table.CellPadding =
new
Padding(5);
if
(widthTable > 0)
table.PreferredWidth =
new
TableWidthUnit(widthTable);
Thanks for your service.