Table is bigger than width of the page

4 posts, 0 answers
  1. Tamas
    Tamas avatar
    4 posts
    Member since:
    May 2012

    Posted 13 Aug 2012 Link to this post

    Hi Telerik Team,

     

    I work with a Telerik RadRichTextBox control (in paging mode) and I have a problem.

     

    The error scenario is the following:

    1. Insert a table (e.g: 3 X 3) into document.

    2. Add some content to cells.

    3. After that when I try to resize the table horizontally, it cannot be larger than the width of page (it is controlled by Telerik). It works correctly.

    4. Resize a cell that contains some text: the content of this cell should be wrapped inside a word (a word should be divided to two parts in two lines as well).

     

    5. After that try to resize the table again as in step 3., if the table is resized horizontally (the right border is dragged out of the paper), the right-sided border disappears, the RadRichTextBox control does not adjust the width of the table.

     

    I use Telerik 2012 Q1.

     

    Could you please provide me a workaround or any ideas how to handle this issue? Thanks in advance.

     

    Regards.

  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 14 Aug 2012 Link to this post

    Hi Tamas,

    Thank you for your constructive feedback. 

    After a short investigation we can confirm that the right table border goes outside of the boundaries of the page following the steps you provided, but this behavior is observed in MS Word too. When you cannot see the table resize adorner, you can use the thumbs in the ruler above the page to get the table border back in the visible part of the page.

    Our implementation of the tables system is not exactly the same as the one in MS Word. For example in Word there are 3 different layout modes of the tables, whereas in RadRichTextBox they are only two. This is why the editor behaves differently in certain situations.

    If you can point out a behavior that makes the use of table impossible or looking wrong on the UI, we will log it as a bug and work on it as soon as possible. 
    Kind regards,
    Iva Toteva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Tamas
    Tamas avatar
    4 posts
    Member since:
    May 2012

    Posted 14 Aug 2012 Link to this post

    Hi Telerik Team,

    Thank you for your answer.

    Unfortunately our UI concept do not contains ruler.

    Ok, let's see other error scenario:

    1. Insert a table (e.g: 2 X 2) into document.
    2. Insert other table (e.g: 2 X 2) into left upper cell.
    3. Add some content to cells of inner table.
    4. Resize a cell that contains some text: the content of this cell should be wrapped inside a word (a word should be divided to two parts in two lines as well). 
    5. Move left center border of the outer table.

     

    Result: The inner table appears on other cell.

    I have another problem. If LayoutMode of table is autofit, we cannot get the width of columns (e.g. table.GetGridColumnWidth(i) -> null), so the width of table is not calculated. There is a problem because we cannot notify the user that width of table is larger than the width of page.

    Thanks in advance.

     

    Regards.


     

     

  5. Mihail
    Admin
    Mihail avatar
    192 posts

    Posted 17 Aug 2012 Link to this post

    Hi Tamas,

    The described behavior in your other scenario is the same as in MS Word with one difference - that MS Word clips the content from the first table. We will add this issue to our to do list. Your Telerik points have been updated in appreciation of the feature request.

    About your second question - when a table is in LayoutMode Autofit, it has no preferred width. That's why the result of GetGridColumnWidth is null. You can access directly the grid, which is kept as a property of the table and check the PrefferedWidth of the columns or their Width if PreferredWidth is null.

    I hope this answers your questions.

    Greetings,
    Mihail
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top