Skip to content

Commit 7cfd287

Browse files
Revamping the Ug
1 parent df3b2cb commit 7cfd287

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

blazor/diagram/data-binding.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ documentation: ug
3030

3131
## How to Specify Parent Child Relationship in Data Source
3232

33-
The [ID](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DataSourceSettings.html#Syncfusion_Blazor_Diagram_DataSourceSettings_ID) and [ParentID](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DataSourceSettings.html#Syncfusion_Blazor_Diagram_DataSourceSettings_ParentID) properties are string in DataSourceSettings. When creating a parent-child relationship, it's essential to ensure that at least one node has an empty ParentID. This node will act as the root or parent node, with other nodes linked as its children. For example, let's consider the data source settings. Within the DataSource, we have defined three specific details. The DataModel class has attributes such as ID, ParentID, and various other details. In this scenario, the initial dataset does not have a parent ID, which means we have set it as empty. This node acts as the parent or root node of the layout. Subsequent datasets, however, do contain a ParentID. Below is a code example illustrating this:
33+
The [ID](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DataSourceSettings.html#Syncfusion_Blazor_Diagram_DataSourceSettings_ID) and [ParentID](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DataSourceSettings.html#Syncfusion_Blazor_Diagram_DataSourceSettings_ParentID) properties are string in `DataSourceSettings`. When creating a parent-child relationship, it's essential to ensure that at least one node has an empty `ParentID`. This node will act as the root or parent node, with other nodes linked as its children. For example, let's consider the data source settings. Within the `DataSource`, we have defined three specific details. The `DataModel` class has attributes such as `ID`, `ParentID`, and various other details. In this scenario, the initial dataset does not have a parent ID, which means we have set it as empty. This node acts as the parent or root node of the layout. Subsequent datasets, however, do contain a `ParentID`. Below is a code example illustrating this:
3434

3535
```csharp
3636
@using Syncfusion.Blazor.Diagram
@@ -595,7 +595,7 @@ A complete working sample can be downloaded from [GitHub](https://github.com/Syn
595595
596596
## How to Bind JSON Data to the Diagram
597597

598-
Local JSON data can be bound to the Diagram by assigning the array of objects to the Json property of the SfDataManager component.
598+
Local JSON data can be bound to the Diagram by assigning the array of objects to the Json property of the `SfDataManager` component.
599599

600600
The following sample code demonstrates binding local data through SfDataManager to the Diagram component,
601601

@@ -668,7 +668,7 @@ A complete working sample can be downloaded from [GitHub](https://github.com/Syn
668668

669669
To bind remote data to the [Diagram component](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html), assign service data as an instance of [SfDataManager](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Data.SfDataManager.html) to the [DataSource](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DataSourceSettings.html#Syncfusion_Blazor_Diagram_DataSourceSettings_DataSource) property or use the SfDataManager component. To interact with a remote data source, provide the endpoint Url.
670670
671-
When using SfDataManager for data binding, the TValue must be provided explicitly in the diagram component. By default, SfDataManager uses ODataAdaptor for remote data-binding.
671+
When using `SfDataManager` for data binding, the TValue must be provided explicitly in the diagram component. By default, `SfDataManager` uses `ODataAdaptor` for remote data-binding.
672672

673673
### How to Bind OData Services
674674

@@ -763,7 +763,7 @@ A complete working sample can be downloaded from [GitHub](https://github.com/Syn
763763
764764
### How to Bind OData V4 Services
765765

766-
OData V4 is an updated version of the OData protocols, and the SfDataManager can also retrieve and consume OData v4 services. For more details on OData v4 services, refer to the [OData documentation](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_Toc453752197). To bind an OData v4 service, use the OData V4 adaptor.
766+
OData V4 is an updated version of the OData protocols, and the `SfDataManager` can also retrieve and consume OData v4 services. For more details on OData v4 services, refer to the [OData documentation](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_Toc453752197). To bind an OData v4 service, use the OData V4 adaptor.
767767
768768
```cshtml
769769
@using Syncfusion.Blazor.Diagram
@@ -1040,7 +1040,7 @@ The following sample code demonstrates how to bind data to the Diagram component
10401040
A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/DataBinding/RemoteData/URLAdaptor)
10411041
10421042
### How to Bind Custom Data
1043-
Custom data binding can be performed in the diagram component by providing a custom adaptor class and overriding the Read or ReadAsync method of the DataAdaptor abstract class.
1043+
Custom data binding can be performed in the diagram component by providing a custom adaptor class and overriding the `Read` or `ReadAsync` method of the `DataAdaptor` abstract class.
10441044

10451045
The following sample code demonstrates implementing custom data binding using custom adaptor,
10461046

@@ -1912,7 +1912,7 @@ namespace DiagramWithRemoteData.Controllers
19121912

19131913
### How to Configure Diagram Component Using Web API Adaptor
19141914

1915-
Configure the Diagram using the **'SfDataManager'** to interact with the created Web API and consume the data appropriately. To interact with the web api, use WebApiAdaptor.
1915+
Configure the Diagram using the 'SfDataManager' to interact with the created Web API and consume the data appropriately. To interact with the web api, use **WebApiAdaptor**.
19161916

19171917
```cshtml
19181918
@using Syncfusion.Blazor.Data

0 commit comments

Comments
 (0)