Excel Document VSTO: "Associated Diagram" in the RadDiagramRibbonBar

3 posts, 0 answers
  1. Eduardo
    Eduardo avatar
    3 posts
    Member since:
    Nov 2010

    Posted 26 Jan 2018 Link to this post

    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. Eduardo
    Eduardo avatar
    3 posts
    Member since:
    Nov 2010

    Posted 26 Jan 2018 in reply to Eduardo Link to this post

    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.
  3. Dimitar
    Admin
    Dimitar avatar
    2818 posts

    Posted 29 Jan 2018 Link to this post

    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.
Back to Top