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

Error after Dropping RadRichTextBox

2 Answers 21 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Stuart Cotts
Top achievements
Rank 1
Stuart Cotts asked on 09 Feb 2021, 12:09 AM

I Drag a RadRichTextBox onto a UserControl, it asks me about options for the ribbon I turn off a couple of things, it creates it, I run and get this error at the UserControl's InitializeComponent();

''Set property 'Telerik.Windows.Controls.RadRibbonBackstageItem.Icon' threw an exception.'  

With an InnerException of 

IOException: Cannot locate resource 'images/modern/16/new.png'.

I checked to make sure I have all references for RadRichTextBox and the ribbons, yes they are all there

 

Any ideas???

 

2 Answers, 1 is accepted

Sort by
0
Stuart Cotts
Top achievements
Rank 1
answered on 09 Feb 2021, 04:40 AM

Figured it out, I was dropping the RadRichTextBox on a grid. In the auto creation of the Ribbon it created a Grid.Resources section with telerik:IconSources created in it. I had a UserControl.Resources section, moving the telerik:IconSources to the UserControl.Resources and deleting the Grid.Resources made it happy, not sure why that actually made a difference, but it did

 

0
Dimitar
Telerik team
answered on 09 Feb 2021, 08:13 AM

Hello Stuart,

I am not sure what caused this issue either. We do not have other reports of similar behavior. Nevertheless, I am glad that this works now. 

Do not hesitate to contact us if you have other questions.

Regards,
Dimitar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
RichTextBox
Asked by
Stuart Cotts
Top achievements
Rank 1
Answers by
Stuart Cotts
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or