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

Wizard not doing it's job

1 Answer 60 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Randy Hompesch
Top achievements
Rank 1
Randy Hompesch asked on 10 Jan 2018, 08:29 PM

Ok, so I posted this a few minutes ago, but it disappeared. I'll try again.

I am trying to get a richtextbox editor set up in my app.

I created a blank application. I followed the doc and added all the references first.

I then dragged a RadRichTextBox onto the MainWIndow designer and watched the wizard pop up. I went through the wizard and  made one modification. I changed the first dialog to say I wanted a word processor. Other than that I left all at their defaults. I got to the end of the wizard and hit finish. BANG!

ArgumentException: Property 'System.Object DropDownContent' is not defined for type 'Telerik.Windows.Controls.RadRibbonSplitButton

 

Not deterred, I hit save and closed and reopened the MainWindow and the error seemed to go away.

I compiled just fine. I ran it and all I got was a blank page and I could not enter or edit, nor did I see any of the toolbars/ribbons/ruler etc. I have made no changes to anything other than the wizard change described above.

Please advise on how to fix this.

While we're at it bonus points will be given if you can tell me how to get whatever the user puts in the richtextbox onto a telerik report!

Thanks ... Ed

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 15 Jan 2018, 01:18 PM
Hello Ed,

I am sorry to hear that you are experiencing similar issues.

I tested the wizard but everything seems to be working as expected on our end. This is why I would like to ask you several questions to ensure I am not missing something.
  1. Which binaries you have added as references - the regular or the NoXaml ones? If the NoXaml binaries are used, you should ensure that the required resources are merged. Otherwise, the controls won't have any styling and won't be visible.
  2. Which is the version of Visual Studio you use?
  3. Is the XAML code for the ribbon and other supplementary controls generated or only the declaration of RadRichTextBox is added to the page?

As to transferring the content from RadRichTextBox to Telerik Reporting, that can be achieved using the HtmlFormatProvider class of RadRichTextBox to export the content and the HtmlTextBox item to show the generated HTML in the report. Please, note that the HtmlTextBox item supports a limited set of the HTML tags, so to achieve the best compatibility between the two controls, you will need to apply the settings of the HtmlFormatProvider listed in this topic.

Regards,
Tanya
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
RichTextBox
Asked by
Randy Hompesch
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Share this question
or