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.
For now, I have implemented no-argument constructors for my ElementShape-derived classes which allows the deserialization to proceed.
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 15 Sep 2017, 07:19 AM
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.