This is a migrated thread and some comments may be shown as answers.

Table width

1 Answer 28 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Gerardo
Top achievements
Rank 1
Gerardo asked on 07 May 2012, 10:30 AM
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:
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.

1 Answer, 1 is accepted

Sort by
0
Mihail
Telerik team
answered on 10 May 2012, 09:03 AM
Hi Gerardo,

Unfortunately we couldn't reproduce the problem. Can you create a simple demo project which illustrates the problem and attach it to support ticket, so we can investigate this issue further?

Feel free to contact us If you have any further question.

Kind regards,
Mihail
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
Gerardo
Top achievements
Rank 1
Answers by
Mihail
Telerik team
Share this question
or