Diagram Items update

1 Answer 17 Views
Diagram
Parth
Top achievements
Rank 1
Iron
Iron
Parth asked on 22 Mar 2024, 08:17 AM

Hello,

            I want to update the node and connector after giving the GraphDatasource in the "RadDiagram", 

           Because I want to used different nodes and different style connectors together in diagram.

            

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 22 Mar 2024, 11:52 AM

Hello  Parth,

You can read more about the GraphSource and how to update the shapes and connections in the related data binding articles of RadDiagram.

Basically, to update the diagram, you can change the property values of the view models in the GraphSource. Some properties that are available on the shapes may not be presented in the model, so you may want to add them manually in the inherited class and data bind them via the ShapeStyle and ConnectionStyle properties of the diagra, or via an implicit style (Style with no x:Key setting) targeting the corresponding element as shown here.

I hope this helps.

Regards,
Martin Ivanov
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com
Tags
Diagram
Asked by
Parth
Top achievements
Rank 1
Iron
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or