Refresh the diagram

4 posts, 0 answers
  1. Xiao
    Xiao avatar
    6 posts
    Member since:
    Jul 2011

    Posted 08 Mar 2012 Link to this post

    How to refresh the diagram after I changed the geometry of one of the RadDiagramShape in a RadDiagram?
  2. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 09 Mar 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. Xiao
    Xiao avatar
    6 posts
    Member since:
    Jul 2011

    Posted 09 Mar 2012 Link to this post

    If I only modified the geometry from the shape (not specifying anew geometry instance to it), how can I trigger the update?
  5. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 13 Mar 2012 Link to this post

    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 >>
Back to Top