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.

InPlaceRichTextBox

Thread ID:

Created:

Updated:

Platform:

Replies:

67974 Sep 5,2007 01:03 PM Sep 7,2007 01:59 PM Windows Forms 5
loading
Tags: GridControl
Sudharsini Ravikumar
Asked On September 5, 2007 01:03 PM

Could someone please email me the latest and greatest InPlaceRichTextCell VB version?

Thanks
Sudha

Ajish [Syncfusion]
Replied On September 5, 2007 06:11 PM

Hi Sudha ,

The RichText cell control in the library allows you to edit richtext via a dropdown panel. It does not allow you to edit the text in-place.

You can derive the GridRichTextBoxCellModel and GridRichTextBoxCellRenderer classes to use an embedded RichTextBox in the cell to do the active editing. Attached are samples that do this.

To use this control, you would include the InPlaceRichTextCell.vb file in your project, and then register the new CellControl using grid.CellModels.Add. The attached samples show how to use this method for both a GridControl or a GridDataBoundGrid.

http://websamples.syncfusion.com/samples/Grid.Windows/F67974/main.htm

Kindly take a look and let me know if you need any further assistance.

Regards,
Ajish.

Sudharsini Ravikumar
Replied On September 5, 2007 07:38 PM

Hi

I used the sample sent by you and dropped a grid control to my form. Added the Richtext cell model. Got some sample RTF data (hard coded as string in style.cellValue. I have about 200 something rows in the grid where about 10 are picture box cells.

It is slow to paint the view (may b I could Begin update and end update to fix this). But anyways the probelm is I don't see RichText or for that matter any text in the cells. I don't know what mistake I'm doing. Could you please help?

I have the following code..
'Add the Richtext cell model
Me.GridControl1.CellModels.Add("InPlaceRTB", New InPlaceRichTextCellModel(Me.GridControl1.Model))

'Remove all rows
Me.GridControl1.Rows.RemoveRange(0, Me.GridControl1.Model.RowCount())

'For every record add a row and set its properties
For I As Integer = 0 To dt.Rows.Count - 1
Me.GridControl1.Rows.InsertRange(I, 1)
style = Me.GridControl1(I, 1)
lngObjTypeID = dt.Rows(I)("ObjTypeID")
If lngObjTypeID = "TEXT"
style.CellType = "InPlaceRTB"
style.CellValue = dt.Rows(I)("DisplayText")
style.AllowEnter = True
End If
Next

Thanks Sudha

Ajish [Syncfusion]
Replied On September 6, 2007 06:37 PM

Hi Sudha,

There doesn't seem to be any problem with the code provided. It should work fine. In fact it is the same code that is used in the sample provided in the previous update. Could please provide us with a test sample this would help us to investigate further on this issue.

Regards,
Ajish.

Sudharsini Ravikumar
Replied On September 6, 2007 07:34 PM

I have many probelms with the grid.

1. Resizing -- My grid is docked to the parent form. So when I resize the form the grid gets resized. Then I have a handler to QueryColResize to resize the only column in my grid to fill the entire width of the grid. When this is done I expected the gird to resize the heights so that the row heights fit the content. It doesn't.

2. When I paste using the Paste Context menu in RTB it throws an exception.

Could you please help me with these 2 issues?

The attached sample has both the problems.

Thanks
Sudha

InPlaceRichTextCellSample_VB.zip

Ajish [Syncfusion]
Replied On September 7, 2007 01:59 PM

Hi Sudha,

Thank you for the details.

We are able to note a similar issue reported in Direct Trac Incident # 37117 and it has been updated. Please follow the details of the issue in it.

Regards,
Ajish

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.

;