Diagram serialization events

4 posts, 1 answers
  1. Tino
    Tino avatar
    37 posts
    Member since:
    Jul 2017

    Posted 13 Sep Link to this post

    I closed the previous thread a bit early. I'd like to be able to skip deserializing certain shapes (e.g. my custom shapes). Please point me to the event/s I need to respond to to achieve this, or if there's another way. Thanks.
  2. Tino
    Tino avatar
    37 posts
    Member since:
    Jul 2017

    Posted 13 Sep Link to this post

    This is the error I'm getting with loading a diagram from XML.

     

     

  3. Tino
    Tino avatar
    37 posts
    Member since:
    Jul 2017

    Posted 13 Sep in reply to Tino Link to this post

    For now, I have implemented no-argument constructors for my ElementShape-derived classes which allows the deserialization to proceed.
  4. Answer
    Dess
    Admin
    Dess avatar
    2110 posts

    Posted 15 Sep Link to this post

    Hello Tino, 

    Thank you for writing back. 

    According to the provided screenshot, it seems that you were missing parameterless constructor for your custom shapes. Indeed, creating such a constructor is the appropriate solution in this case. As a side note, you can refer to the following help article where you can find the relevant events when serializing/deserializing shapes: http://docs.telerik.com/devtools/winforms/diagram/events/diagram-events

    I hope this information helps. If you have any additional questions, please let me know. 

     Regards,
    Dess
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 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