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

Excel Document VSTO: "Associated Diagram" in the RadDiagramRibbonBar

2 Answers 41 Views
Diagram, DiagramRibbonBar, DiagramToolBox
This is a migrated thread and some comments may be shown as answers.
Eduardo
Top achievements
Rank 1
Eduardo asked on 26 Jan 2018, 02:13 PM

While trying to build a quick POC using Telerik diagram control I came upon this issue.

When I try to bind "Associated Diagram" in the RadDiagramRibbonBar, I get an error when I click on the Drop down control.

---------------------------
Microsoft Visual Studio
---------------------------
Error using the dropdown: Unable to cast object of type 'System.Windows.Forms.UserControl' to type 'System.Windows.Forms.Form'.
---------------------------
OK   
---------------------------

 

I understand that an Excel Document Action Pane is in effect a UserControl type but I was wondering if there was a work around to this scenario.

2 Answers, 1 is accepted

Sort by
0
Eduardo
Top achievements
Rank 1
answered on 26 Jan 2018, 02:21 PM
FYI, I guess even the Excel Document VSTO context is irrelevant. I just tried a simple UserControl project to host the Diagram toolbar and the Diagram controls and the error comes up the same when trying to connect the toolbar with the diagram control.
0
Dimitar
Telerik team
answered on 29 Jan 2018, 07:58 AM
Hello Ramon,

I have logged this issue on our Feedback Portal. You can track its progress, subscribe to status changes and add your comment to it here. I have also updated your Telerik Points.

To workaround this set the AssociatedControl in the code:
radDiagramRibbonBar1.AssociatedDiagram = radDiagram1;

Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Diagram, DiagramRibbonBar, DiagramToolBox
Asked by
Eduardo
Top achievements
Rank 1
Answers by
Eduardo
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or