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

Resize Table column

4 Answers 165 Views
RichTextBox (obsolete as of Q3 2014 SP1)
This is a migrated thread and some comments may be shown as answers.
Nagarajan
Top achievements
Rank 1
Nagarajan asked on 03 Dec 2013, 06:08 AM
how to resize the column in rad richtextbox in winform c#

4 Answers, 1 is accepted

Sort by
0
Nagarajan
Top achievements
Rank 1
answered on 05 Dec 2013, 05:36 AM
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
0
Ivan Todorov
Telerik team
answered on 05 Dec 2013, 12:32 PM
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 >>
0
Nagarajan
Top achievements
Rank 1
answered on 31 Jul 2014, 07:04 AM
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);
                }

0
Dimitar
Telerik team
answered on 31 Jul 2014, 02:29 PM
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.
 
Tags
RichTextBox (obsolete as of Q3 2014 SP1)
Asked by
Nagarajan
Top achievements
Rank 1
Answers by
Nagarajan
Top achievements
Rank 1
Ivan Todorov
Telerik team
Dimitar
Telerik team
Share this question
or