We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Resize RichText cell

Thread ID:

Created:

Updated:

Platform:

Replies:

52819 Dec 5,2006 12:52 AM Dec 5,2006 05:47 AM Windows Forms 3
loading
Tags: GridControl
Venkatesh Venkatasubramanian
Asked On December 5, 2006 12:52 AM

Hi,

I am using Syncfusion 4.1 grid.
First row in the grid contains 2 columns - one is editable dropdownlist and another is a static cell.

Second row is a covered range of the 2 columns
and the type is rich text cell

Third row is a static readonly cell

Now, If I set a value in the first row - first column, a lookup happens and I display some information on the second row. Since, the text needs to have multiple colors, I have used a Rich Text cell.

The colwidth entry has been set as 500 for this cell. However, if the value is greater than this width, I want the cell to wrap the text and increase the cell height. I have set autosize and wraptext to true while creating the cell. I also tried ResizetoFit but nothing works. My text is stripped beyond a certain width.

How can I make sure that my text wraps and gets displayed correctly. Please let me know. Thanks!

Regards
Venkatesh.

Administrator [Syncfusion]
Replied On December 5, 2006 02:17 AM

Hi Venkatesh,

Please refer to the below forum thread for more details.
http://www.syncfusion.com/support/forums/message.aspx?&MessageID=15023

Best Regards,
Haneef

Venkatesh Venkatasubramanian
Replied On December 5, 2006 03:22 AM

Hi Haneef,

Is it just possible to do it without using Inplace edit? Also, I have set AllowEnter=true and setting /par in my RTF string. I am also calling ResizetoFit for RowHeights. Won't that suffice?

FYI, the code given in the link doesn't compile in Syncfusion 4.1

From 4.1 standpoint, can you please provide some pointers whether I should still override OnQueryPrefferedClientSize? It would be great if you can provide steps to be followed.

Thanks!
Venkatesh.

>Hi Venkatesh,

Please refer to the below forum thread for more details.
http://www.syncfusion.com/support/forums/message.aspx?&MessageID=15023

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On December 5, 2006 05:47 AM

Hi Venkatesh,

No,It is not possible to autosize the RichText without implementing in-place editing. Please try the attached sample and let me know if this helps.

Here is a sample which implments In-Place editing in RichTextCell.
http://www.syncfusion.com/Support/user/uploads/PasteinRichTextInPlaceCellContol_5a51719e.zip

Best Regards,
Haneef

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;