Centering a table

2 posts, 0 answers
  1. Justin Lee
    Justin Lee avatar
    169 posts
    Member since:
    Dec 2009

    Posted 15 Nov 2011 Link to this post

    How can I center a table in a RadDocument?

    I am creating the RadDocument in code.  I don't want to center the content in the cells, I just wan to center the entire table in the document. (horizontally)
    RadDocument doc = new RadDocument();
    Section section = new Section();
    Table table = new Table();
    //add rows and cells
    section.Blocks.Add(table);
    document.Sections.Add(Section);

  2. Boby
    Admin
    Boby avatar
    686 posts

    Posted 21 Nov 2011 Link to this post

    Hello Justin Lee,
    For now, alignment of tables is not supported. It is, however, in our to-do list and probably would be implemented in some of the next releases. You could vote for and follow the issue in PITS here.
    For now, your only option is to set Table.TableIndent property depending on the page size.

    Don't hesitate to contact us if you have other questions.


    Regards,
    Boby
    the Telerik team

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

Back to Top