How to refresh the diagram after I changed the geometry of one of the RadDiagramShape in a RadDiagram?
3 Answers, 1 is accepted
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 >>
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 >>