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

Refresh the diagram

3 Answers 107 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Xiao
Top achievements
Rank 1
Xiao asked on 09 Mar 2012, 01:39 AM
How to refresh the diagram after I changed the geometry of one of the RadDiagramShape in a RadDiagram?

3 Answers, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 09 Mar 2012, 09:52 AM
Hello,

You do not need to refresh the shape. The Geometry property is bound to the Path inside the shape's template. As it is a dependency property, the binding will automatically update the Path when the geometry is changed.

Kind regards,
Alex Fidanov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Xiao
Top achievements
Rank 1
answered on 09 Mar 2012, 08:23 PM
If I only modified the geometry from the shape (not specifying anew geometry instance to it), how can I trigger the update?
0
Miro Miroslavov
Telerik team
answered on 13 Mar 2012, 07:52 AM
Hi Xiao,

 But how you modify the Geometry, since there are different types? If you modify the Figures and Segments of the PathGeometry for example, the Shape should update automatically. So it depends on the type of the Geometry if it supports inline modifying or not. Basically you can not force the diagram to render the modified Geometry, because this is outside of the diagram scope, it is part of the Geometry implementation. 

Regards,
Miro Miroslavov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Diagram
Asked by
Xiao
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
Xiao
Top achievements
Rank 1
Miro Miroslavov
Telerik team
Share this question
or