You can data bind RadDiagram shapes and connections on the
client to RadClientDataSource controls since Q1 2015.
Client-side data binding allows for:
- data updates without postbacks
- easy integration with various data services
- flexible client-side development.
The client-side data binding is provided through the following properties:
- ClientDataSourceID - the server ID of the RadClientDataSource
responsible for providing the Shapes data.
- ConnectionsClientDataSourceID - the server ID of the RadClientDataSource responsible
for providing the Connections data.
The shapes and connections data should be in a JSON format with the necessary fields:
- for Shapes, you need fields with the exact names from
The fields of the shape model article.
These fields control the type, position and dimensions of the shapes.
- for Connections, you need fields with the exact names from
The fields of the connection model article.
These fields associate connections with the shapes.
Note:
If you want to customize the shapes yourself, you can get the necessary data from the dataItem object and reconfigure the shapes in either of the following ways: