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

Opacity Property not save

2 Answers 42 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Wang
Top achievements
Rank 1
Wang asked on 10 Oct 2016, 09:12 AM

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 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 10 Oct 2016, 09:52 AM
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.
0
Wang
Top achievements
Rank 1
answered on 11 Oct 2016, 12:59 AM
Thanks a lot! This is helpful to me!
Tags
Diagram
Asked by
Wang
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Wang
Top achievements
Rank 1
Share this question
or