Opacity Property not save

3 posts, 0 answers
  1. Wang
    Wang avatar
    42 posts
    Member since:
    Oct 2011

    Posted 10 Oct 2016 Link to this post

    Hello!

    I tried the examples of diagram,and I found that when I set the Opacity Property of a shape,and save the diagram to a xml,the Opacity Property did't saved to the xml file,so when I open the xml in diagram, the Opacity Property of the shape was 100%.

    How to solve this bug?

     
  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    1331 posts

    Posted 10 Oct 2016 Link to this post

    Hello Wang,

    By default RadDiagram saves only a predefined set of properties. The Opacity property of the shapes is not one of them. In order to serialize/deserialize the opacity or any other property not presented in the list you will need to do it manually via the ShapeSerialized and ShapeDeserialized events of the diagram. You can see how to do this in the Serialization help article.

    Regards,
    Martin
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. Wang
    Wang avatar
    42 posts
    Member since:
    Oct 2011

    Posted 10 Oct 2016 Link to this post

    Thanks a lot! This is helpful to me!
Back to Top