You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -152,9 +152,9 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
152
152

153
153
## How to add connector with annotations at runtime
154
154
155
-
You can add connector with annotation at runtime in the diagram component by using the [AddDiagramElements](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_AddDiagramElements_Syncfusion_Blazor_Diagram_DiagramObjectCollection_Syncfusion_Blazor_Diagram_NodeBase__) method.
155
+
You can add connector with annotation at runtime in the diagram component by using the [AddDiagramElementsAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_AddDiagramElementsAsync_Syncfusion_Blazor_Diagram_DiagramObjectCollection_Syncfusion_Blazor_Diagram_NodeBase__) method.
156
156
157
-
The following code explains how to add an connector with annotation at runtime by using `AddDiagramElements` method.
157
+
The following code explains how to add an connector with annotation at runtime by using `AddDiagramElementsAsync` method.
158
158
159
159
```cshtml
160
160
@using Syncfusion.Blazor.Diagram
@@ -200,7 +200,7 @@ The following code explains how to add an connector with annotation at runtime
@@ -393,13 +393,13 @@ The following code example explains how to change the connector properties.
393
393
Diagram.BeginUpdate();
394
394
Diagram.Connectors[0].SourcePoint.X = 50;
395
395
Diagram.Connectors[0].SourcePoint.Y = 50;
396
-
Diagram.EndUpdate();
396
+
Diagram.EndUpdateAsync();
397
397
}
398
398
}
399
399
```
400
400
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Connectors/ActionofConnectors/UpdateConnectorAtRunTime)
401
401
402
-
N> BeginUpdate and EndUpdate methods allow you to stop the continuous update of control and resume it finally.
402
+
N> BeginUpdate and EndUpdateAsync methods allow you to stop the continuous update of control and resume it finally.
Copy file name to clipboardExpand all lines: blazor/diagram/connectors/segments/bezier/bezier.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -244,7 +244,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
244
244
245
245

246
246
247
-
###How to customize Bezier Segment Thumb Shape
247
+
## How to customize Bezier Segment Thumb Shape
248
248
249
249
The Bezier connector can have multiple segments between the source and target points. By default, these segments are rendered as circles, but this can be customized either globally or for individual connectors using the [SegmentThumbSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SegmentThumbSettings.html) class.
Copy file name to clipboardExpand all lines: blazor/diagram/connectors/segments/straight.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
100
100
101
101

102
102
103
-
###How to customize Straight Segment Thumb Shape
103
+
## How to customize Straight Segment Thumb Shape
104
104
105
105
The Straight connector can have multiple segments between the source and target points. By default, these segments are rendered as circles, but this can be customized either globally or for individual connectors using the [SegmentThumbSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SegmentThumbSettings.html) class.
@@ -384,7 +384,7 @@ The following code illustrates how a node group is added at runtime.
384
384
}
385
385
```
386
386
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Group/AddGroupAtRunTime)
387
-
* Also, you can add the child to the node group through [AddChild](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_AddChild_Syncfusion_Blazor_Diagram_NodeGroup_Syncfusion_Blazor_Diagram_NodeBase_) method. The following code illustrates how to add child to the existing node group through AddChild method.
387
+
* Also, you can add the child to the node group through [AddChildAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_AddChildAsync_Syncfusion_Blazor_Diagram_NodeGroup_Syncfusion_Blazor_Diagram_NodeBase_) method. The following code illustrates how to add child to the existing node group through AddChildAsync method.
388
388
389
389
```cshtml
390
390
@using Syncfusion.Blazor.Diagram
@@ -466,7 +466,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
466
466
}
467
467
}
468
468
};
469
-
await diagram.AddChild(group as NodeGroup, node);
469
+
await diagram.AddChildAsync(group as NodeGroup, node);
Copy file name to clipboardExpand all lines: blazor/diagram/how-to.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,11 +50,11 @@ To create a node, define the Node object and add it to the nodes collection of t
50
50
```
51
51
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Methods/AddMethod)
52
52
53
-
## How to add nodes through AddDiagramElements
53
+
## How to add nodes through AddDiagramElementsAsync
54
54
55
-
Unlike the Add() method, the [AddDiagramElements](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_AddDiagramElements_Syncfusion_Blazor_Diagram_DiagramObjectCollection_Syncfusion_Blazor_Diagram_NodeBase__) method will measure the passed elements before re-rendering the complete diagram component at once. When using the Add() method to add multiple nodes and connectors simultaneously, the connectors will be rendered before the nodes. As a result, connectors may be misplaced due to the synchronous behavior of the Add method. To overcome this, use the asynchronous AddDiagramElements() method.
55
+
Unlike the Add() method, the [AddDiagramElementsAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_AddDiagramElementsAsync_Syncfusion_Blazor_Diagram_DiagramObjectCollection_Syncfusion_Blazor_Diagram_NodeBase__) method will measure the passed elements before re-rendering the complete diagram component at once. When using the Add() method to add multiple nodes and connectors simultaneously, the connectors will be rendered before the nodes. As a result, connectors may be misplaced due to the synchronous behavior of the Add method. To overcome this, use the asynchronous AddDiagramElementsAsync() method.
56
56
57
-
*AddDiagramElements() method is a preferred way to add a collection of items to the diagram to get better performance compared to Add() method.
57
+
*AddDiagramElementsAsync() method is a preferred way to add a collection of items to the diagram to get better performance compared to Add() method.
58
58
59
59
```cshtml
60
60
@using Syncfusion.Blazor.Diagram
@@ -147,7 +147,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
@@ -958,8 +958,8 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
958
958
```
959
959
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Methods/GetCustomCursor)
960
960
961
-
## How to use the BeginUpdate and EndUpdate
962
-
[BeginUpdate](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_BeginUpdate) prevents visual updates to the diagram until the EndUpdate() method is called. [EndUpdate](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_EndUpdate) means that the diagram is unlocked following a call to the BeginUpdate(Boolean) method, resulting in an immediate visual update.
961
+
## How to use the BeginUpdate and EndUpdateAsync
962
+
[BeginUpdate](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_BeginUpdate) prevents visual updates to the diagram until the EndUpdateAsync() method is called. [EndUpdateAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_EndUpdateAsync) means that the diagram is unlocked following a call to the BeginUpdate(Boolean) method, resulting in an immediate visual update.
963
963
964
964
```cshtml
965
965
@using Syncfusion.Blazor.Diagram
@@ -1032,7 +1032,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
1032
1032
diagram.BeginUpdate();
1033
1033
diagram.Nodes[0].Height = 150;
1034
1034
diagram.Nodes[0].Width = 150;
1035
-
diagram.EndUpdate();
1035
+
diagram.EndUpdateAsync();
1036
1036
1037
1037
}
1038
1038
}
@@ -1305,7 +1305,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
1305
1305
{
1306
1306
sfDiagram.EndGroupAction();
1307
1307
}
1308
-
_ = sfDiagram.EndUpdate();
1308
+
_ = sfDiagram.EndUpdateAsync();
1309
1309
base.OnMouseUp(args);
1310
1310
this.InAction = true;
1311
1311
}
@@ -1525,7 +1525,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
1525
1525
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Methods/ZoomAndPan)
1526
1526
1527
1527
## How to refresh the datasource
1528
-
[RefreshDataSource](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_RefreshDataSource) will refresh the layout based on the changes in the data source.
1528
+
[RefreshDataSourceAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_RefreshDataSourceAsync) will refresh the layout based on the changes in the data source.
1529
1529
1530
1530
```cshtml
1531
1531
@using Syncfusion.Blazor.Diagram
@@ -1599,7 +1599,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
0 commit comments