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

Telerik RichTextBox demo ?

9 Answers 364 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
CG
Top achievements
Rank 1
CG asked on 10 Jun 2010, 11:21 PM
Is there a source code available for the Telerik RichTextBox demo ?

9 Answers, 1 is accepted

Sort by
0
Alex
Telerik team
answered on 15 Jun 2010, 11:25 AM
Hi Claude Grosjean

Please find attached the source code of the examples.
We will make sure that the files are visible in the demos in the next releases.

Kind regards,

Alex
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
CG
Top achievements
Rank 1
answered on 18 Jun 2010, 12:48 AM
Thank you very much for posting this.
Best Regards,
Claude
0
GEB
Top achievements
Rank 1
answered on 10 Jul 2010, 07:13 AM
I am able to crash the demo that is attached.  Here are the steps:

1.    Select "New" from the application popup menu.
2.    Click "OK" to not save any changes.
3.    A new document is created.  CLick in the left margin of the empty document and the demo application with throw and exception.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDR; .NET4.0C; .NET4.0E; InfoPath.3)
Timestamp: Sat, 10 Jul 2010 06:13:06 UTC

Message: Unhandled Error in Silverlight Application
Code: 4004   
Category: ManagedRuntimeError      
Message: System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Windows.Documents.Layout.SpanLayoutBox.get_DesiredTextSize()
   at Telerik.Windows.Documents.Layout.SpanLayoutBox.BinarySearchSplitIndex(SpanLayoutBox spanBox, Single availableWidth)
   at Telerik.Windows.Documents.SpanBoxPositionHandler.MoveToLocation(PointF location)
   at Telerik.Windows.Documents.DocumentPosition.SetPosition(PointF position)
   at Telerik.Windows.Documents.UI.EditorContentPresenter.EditorCanvas_MouseLeftButtonDown(Object sender, MouseButtonEventArgs e)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)    

Line: 56
Char: 13
Code: 0
URI: http://localhost:1810/RichTextBox.SilverlightTestPage.aspx

 

0
GEB
Top achievements
Rank 1
answered on 11 Jul 2010, 12:56 AM
I have developed a demo SL4 app that is similar to your attached demo.  However, in my app, I am not seeing the thumb controls showing up in the ruler.  The remainer of the ruler is just fine, but the margin thumbs are not being displayed.

In the demo you attached, I noticed that the PNG files for the ruler thumb controls are actually in the example app under Images\RichTextBox\Ruler.  Can you explain why these need to be included in the app itself, and not the assembly that contains the ruler?  Regardless, even if I put these images in my test app, the ruler is still not being displayed with the margin thumb controls.  I am associating the ruler with the RichTextBox editor control during initialization, and the remainder of the ruler functionality seems to be working perfectly.  Any help would be appreciated.
0
GEB
Top achievements
Rank 1
answered on 11 Jul 2010, 07:11 AM
I have found another minor issue with the RadRichTextBox (or the demo application). 

1.    Select "New" from the application popup menu.
2.    Move the top margin down by selecting the margin thumb on the vertical ruler (left side of window).
3.    The caret for the current insertion point does not move down when the margin is moved.  However, it will move down when the user types the first character.

Great new control!
0
GEB
Top achievements
Rank 1
answered on 11 Jul 2010, 04:10 PM
I have also found that when images are inserted into the RadRichTextBox using the sample application, they appear normal while editing, but are truncated when in Print Preview mode, and when saved to a file.  I have attached a screen image of the image being displayed properly when in the editor, and being truncated when in Print Preview.
0
Alex
Telerik team
answered on 15 Jul 2010, 01:36 PM
Hi GEB,

Thanks for reporting those bugs!
About the issue with the caret -  it should be OK in Q2 version.
As for the printing problem - when exported to HTML the images are base64 encoded within the HTML. However, IE will not display correctly larger images encoded this way. Firefox or Chrome can handle this case. We are currently searching for a better solution and hopefully we will be able to solve this printing issue under IE for the next release (Q2 SP1) Let us know if we can help further with this.

Best wishes,
Alex
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
udaybhaskar
Top achievements
Rank 1
answered on 28 Jul 2011, 05:40 AM
Hi Alex,

May I know which version of Telerik the below example code is build on, as I got lot of errors most of them are version incompatabilty errors. I am currently using Q2 2010 SP2 of Telerik.

Regards,
Uday
0
Iva Toteva
Telerik team
answered on 29 Jul 2011, 12:24 PM
Hi Udaybhaskar,

The example was prepared for Q2 2010. Quite a few breaking changes have been made since then.
The solution contains an implementation of some dialogs that have been added to the Telerik.Windows.RichTextBoxRibbonUI, but it lacks some of the latest version of the controls. A similar demo can be found here. The source of this Telerik Demo can be viewed by clicking the Source button in the top right corner and is also available for download from your account.

Kind regards,
Iva
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
RichTextBox
Asked by
CG
Top achievements
Rank 1
Answers by
Alex
Telerik team
CG
Top achievements
Rank 1
GEB
Top achievements
Rank 1
udaybhaskar
Top achievements
Rank 1
Iva Toteva
Telerik team
Share this question
or