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.

REGD---RichTextBox

Thread ID:

Created:

Updated:

Platform:

Replies:

25556 Mar 1,2005 10:23 AM Mar 4,2005 05:15 AM Windows Forms 9
loading
Tags: GridControl
manohar
Asked On March 1, 2005 10:23 AM

Hi There, In richtextbox if i type something and when the focus is lost its deleting the text which i typed.And one more problem is there is already some text is there in richtextbox move the cursor to the end of the text and paste some text which is copied from some other place, it is deleting the existing content and copying the one which i pasted.pls provide some solution for these two. Regards, Manohar B.

Administrator [Syncfusion]
Replied On March 1, 2005 10:48 AM

What RichTextBox cells are you using? I do not see this behavior in \Syncfusion\Essential Suite\3.0.1.0\Windows\Grid.Windows\Samples\CellTypes\RichTextCells. Do you?

manohar
Replied On March 2, 2005 12:29 AM

I am using "InPlaceRichTextCell",this is downloaded from sysfusion.com Regards, Manohar

Administrator [Syncfusion]
Replied On March 2, 2005 05:25 AM

Are you using 3.0.1.0? With that version, I can see the paste problem you mentioned, but did not see the first problem you mentioned. (This worked OK for me in 2.1.0.9.) Here is a sample with the paste problem corrected. Can you see either problem in this sample? http://www.syncfusion.com/Support/user/uploads/RichTextInPlaceCellContol_e8bbca6.zip

manohar
Replied On March 2, 2005 06:51 AM

Hi Clay, Thanks for your mail. I have some more requirements like auto size rather than the scorll bar. Also if i change the font size the change is not retained when cell loses focus. But when i change the font and then add / delete any text before moving to the next cell the change is retained. Regards, Manohar

Administrator [Syncfusion]
Replied On March 2, 2005 07:04 AM

Here is forum thread with one attempt at autosizing a richtext cell. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=15023 As far as your changes not being saved, make sure the grid.CurrentCell.isModified is set true whenever you change the cell.

manohar
Replied On March 4, 2005 02:12 AM

Hi Clay, I have one requirement where I should be able to write my user defined formulas and implement the functionality.Please give us your valuable suggestions for the same. Regards, Manohar B.

Administrator [Syncfusion]
Replied On March 4, 2005 03:45 AM

I do not understand your requirement. Here is a forum thread on allowing your user to type something like 5 * 1.2312 / 36.2 and seeingth ecalculated value appear (and be stored) in the cell. You can also type something like Sin(3.14159) * Sqrt(553). You can use any well-formed algebraic expression. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=25678 Our Essential Calculate ships with a sample that shows how you can add Excel-Like calculations to our GriddataBoundGrid where your user could type = A2 * B4 and see teh calculated value of multiplying the contenst of cell A2 times the contents of cell B4.

manohar
Replied On March 4, 2005 04:06 AM

Hi Clay, Our requirement is something like this.... We need an additional function like rounding a decimal number to the nearest 0.5 /0.3 value,say for example Rup05(2.27) = 2.5.Apart from this we need to develop application specific formula''s which are not availble in the formula cell nor in the .NET Math Library. Regards, Manohar B.

Administrator [Syncfusion]
Replied On March 4, 2005 05:15 AM

You can add custom formulas both to our grid formula engine and to Essential Calculate''s CalcQuick object. So, you could write your own Rup05 method and add it to the calculation libraries. If you only have 1 or 2 fixed functions you want to handle, then it would likely be easier and more efficient just to write them in your code. If you have a cell whose actual value is 2.27 and you want to display (but not save 2.5), then you can handle the DrawCellDisplayText event. There you can change 2.27 into 2.5 by calling your code that does this calculation, and display the calculated value in this manner. If you want some kind of broad calculation support at this point, you could use an Essential Calculate''s CalcQuick object to do the work in DrawCellDisplayText though it might be more efficient to use Essential Calculate''s CalcEngine directly though this would take a little more effort.)

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.

;