Resize Table column

5 posts, 0 answers
  1. Nagarajan
    Nagarajan avatar
    3 posts
    Member since:
    Oct 2013

    Posted 03 Dec 2013 Link to this post

    how to resize the column in rad richtextbox in winform c#
  2. Nagarajan
    Nagarajan avatar
    3 posts
    Member since:
    Oct 2013

    Posted 04 Dec 2013 Link to this post

    Hi,

    We recently purchase a telerik rad control for winforms, we are using in c# application.

    We are using Radrichtextbox editor control, we are facing this issues, mention below.

    Issue
    1) when we create a Table in rad richtextbox [editor], We not able to resize the column width using mouse event , please suggestion how to achieve this

    also would be great , if you can provide a code sample for this same.

    Thanks,
    Nagarajan.c
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 05 Dec 2013 Link to this post

    Hi Nagarajan,

    Thank you for contacting us.

    Due to a limitation in RadRichTextBox, it is not possible to detect when the mouse pointer is over the column border. We are aware of this limitation and we will try to improve this in future.

    In case you might find resizing a column programmatically useful, you can use the following method to achieve this:
    void radButton1_Click(object sender, EventArgs e)
    {
        TableCellLayoutBox box = radRichTextBox1.Document.CaretPosition.GetCurrentTableCellBox();
        TableCell cell = box.AssociatedTableCell;
          
        TableRow row = cell.Row;
        Table table = row.Table;
      
        radRichTextBox1.ChangeTableGridColumnWidth(table, cell.GridColumnIndex, new TableWidthUnit(200f));
    }

    More information on managing tables in RadRichTextBox can be found here.

    Let me know if you have any other questions.

    Regards,
    Ivan Todorov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  5. Nagarajan
    Nagarajan avatar
    3 posts
    Member since:
    Oct 2013

    Posted 31 Jul 2014 Link to this post

    We are using Radrichtextbox editor control, we are facing this issues, mention below

    Issue
    -------
    Export
    data from Radrichtextbox editor control to word file , Radrichtextbox
    editor control contain image [.png ,.jpg] format and with content, it is giving error "a generic error occurred in gdi+"

    Coding
    ----------
    IDocumentFormatProvider provider = GetProviderByExtension(fileExtension);
                    using (Stream output = File.Create(newFile))
                    {
                        provider.Export(this.txtEditor.Document, output);
                    }

  6. Dimitar
    Admin
    Dimitar avatar
    1413 posts

    Posted 31 Jul 2014 Link to this post

    Hi Nagarajan,

    Thank you for writing.

    This is a known issue and it is already logged in our Feedback Portal. It usually occurs when an image is inserted into the richtextbox. You can track the item for status changes and add your vote for it here.

    Unfortunately due to the nature of the issue I cannot provide you with a workaround for it.

    If you have any other questions, please do not hesitate to contact us.

    Regards,
    Dimitar
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top
UI for WinForms is Visual Studio 2017 Ready