Skip to content

Commit 5ed787b

Browse files
committed
998328: Updated documentation
1 parent 9922b83 commit 5ed787b

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

blazor/treegrid/columns/column-spanning.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ To define a merged region, use the following properties of the MergeCellInfo cla
542542
| RowSpan | int (optional) | The number of rows to span, starting from the anchor cell. By default set to 1. |
543543
| ColumnSpan | int (optional) | The number of columns to span, starting from the anchor cell. By default set to 1. |
544544

545-
The following sample demonstrates programmatic column spanning by calling `MergeCellsAsync` with `RowIndex`, `ColumnIndex`, and `ColumnSpan` for a single merge, and by passing multiple `MergeCellInfo` objects with the same parameters in an array for batch merging.
545+
The following sample demonstrates programmatic column spanning by calling `MergeCellsAsync` with parameters such as `RowIndex`, `ColumnIndex`, and `ColumnSpan` for a single merge, and by passing multiple `MergeCellInfo` objects with the same parameters in an array for batch merging.
546546

547547
{% tabs %}
548548
{% highlight razor tabtitle="Index.razor" %}
@@ -553,7 +553,7 @@ The following sample demonstrates programmatic column spanning by calling `Merge
553553
<SfButton OnClick="MergeCellsAsync">Merge Cell</SfButton>
554554
<SfButton OnClick="MergeMultipleCellsAsync">Merge Multiple Cells</SfButton>
555555

556-
<SfTreeGrid TValue="ProjectTask" @ref="Grid" DataSource="@Tasks" ChildMapping="Children" TreeColumnIndex="0" AllowPaging="true" GridLines="GridLine.Both">
556+
<SfTreeGrid TValue="ProjectTask" @ref="TreeGrid" DataSource="@Tasks" ChildMapping="Children" TreeColumnIndex="0" AllowPaging="true" GridLines="GridLine.Both">
557557
<TreeGridColumns>
558558
<TreeGridColumn Field="@nameof(ProjectTask.ActivityName)" HeaderText="Activity Name" Width="180" />
559559
<TreeGridColumn Field="@nameof(ProjectTask.StartDate)" HeaderText="Start Date" Format="d" Type="ColumnType.Date" Width="130" />
@@ -566,12 +566,12 @@ The following sample demonstrates programmatic column spanning by calling `Merge
566566

567567
@code
568568
{
569-
private SfTreeGrid<ProjectTask> Grid;
569+
private SfTreeGrid<ProjectTask> TreeGrid;
570570
public List<ProjectTask> Tasks { get; set; }
571571

572572
public async Task MergeCellsAsync()
573573
{
574-
await Grid.MergeCellsAsync(new MergeCellInfo
574+
await TreeGrid.MergeCellsAsync(new MergeCellInfo
575575
{
576576
RowIndex = 1,
577577
ColumnIndex = 1,
@@ -581,7 +581,7 @@ The following sample demonstrates programmatic column spanning by calling `Merge
581581

582582
public async Task MergeMultipleCellsAsync()
583583
{
584-
await Grid.MergeCellsAsync(new[]
584+
await TreeGrid.MergeCellsAsync(new[]
585585
{
586586
new MergeCellInfo { RowIndex = 0, ColumnIndex = 0, ColumnSpan = 2 },
587587
new MergeCellInfo { RowIndex = 5, ColumnIndex = 0, ColumnSpan = 3 },
@@ -779,7 +779,7 @@ To identify a merged region, use the following properties of the UnmergeCellInfo
779779
| RowIndex | int | The zero-based index of the anchor row (top-left cell of the merged region). |
780780
| ColumnIndex | int | The zero-based index of the anchor column (top-left cell of the merged region). |
781781

782-
This sample demonstrates clearing merged regions in the TreeGrid by calling `UnmergeCellsAsync` with `RowIndex` and `ColumnIndex` to remove specific spans, passing multiple `UnmergeCellInfo` objects for batch unmerging, and using `UnmergeAllAsync` to reset all merged cells at once.
782+
This sample demonstrates clearing merged regions in the TreeGrid by calling `UnmergeCellsAsync` with parameters such as `RowIndex` and `ColumnIndex` to remove specific spans, passing multiple `UnmergeCellInfo` objects for batch unmerging, and using `UnmergeAllAsync` to reset all merged cells at once.
783783

784784
{% tabs %}
785785
{% highlight razor tabtitle="Index.razor" %}
@@ -795,7 +795,7 @@ This sample demonstrates clearing merged regions in the TreeGrid by calling `Unm
795795

796796
<SfButton OnClick="UnMergeAllCells">UnMerge All Cells</SfButton>
797797

798-
<SfTreeGrid TValue="ProjectTask" @ref="Grid" DataSource="@Tasks" ChildMapping="Children" TreeColumnIndex="0" AllowPaging="true" GridLines="GridLine.Both">
798+
<SfTreeGrid TValue="ProjectTask" @ref="TreeGrid" DataSource="@Tasks" ChildMapping="Children" TreeColumnIndex="0" AllowPaging="true" GridLines="GridLine.Both">
799799
<TreeGridColumns>
800800
<TreeGridColumn Field="@nameof(ProjectTask.ActivityName)" HeaderText="Activity Name" Width="180" />
801801
<TreeGridColumn Field="@nameof(ProjectTask.StartDate)" HeaderText="Start Date" Format="d" Type="ColumnType.Date" Width="130" />
@@ -808,12 +808,12 @@ This sample demonstrates clearing merged regions in the TreeGrid by calling `Unm
808808

809809
@code
810810
{
811-
private SfTreeGrid<ProjectTask> Grid;
811+
private SfTreeGrid<ProjectTask> TreeGrid;
812812
public List<ProjectTask> Tasks { get; set; }
813813

814814
public async Task MergeCellsAsync()
815815
{
816-
await Grid.MergeCellsAsync(new MergeCellInfo
816+
await TreeGrid.MergeCellsAsync(new MergeCellInfo
817817
{
818818
RowIndex = 1,
819819
ColumnIndex = 1,
@@ -823,7 +823,7 @@ This sample demonstrates clearing merged regions in the TreeGrid by calling `Unm
823823

824824
public async Task UnMergeCell()
825825
{
826-
await Grid.UnmergeCellsAsync(new UnmergeCellInfo
826+
await TreeGrid.UnmergeCellsAsync(new UnmergeCellInfo
827827
{
828828
RowIndex = 1,
829829
ColumnIndex = 1,
@@ -832,7 +832,7 @@ This sample demonstrates clearing merged regions in the TreeGrid by calling `Unm
832832

833833
public async Task MergeMultipleCellsAsync()
834834
{
835-
await Grid.MergeCellsAsync(new[]
835+
await TreeGrid.MergeCellsAsync(new[]
836836
{
837837
new MergeCellInfo { RowIndex = 0, ColumnIndex = 0, ColumnSpan = 2 },
838838
new MergeCellInfo { RowIndex = 5, ColumnIndex = 0, ColumnSpan = 3 },

blazor/treegrid/rows/row-spanning.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ To define a merged region, use the following properties of the MergeCellInfo cla
542542
| RowSpan | int (optional) | The number of rows to span, starting from the anchor cell. By default set to 1. |
543543
| ColumnSpan | int (optional) | The number of columns to span, starting from the anchor cell. By default set to 1. |
544544

545-
The following sample demonstrates programmatic row spanning by calling `MergeCellsAsync` with `RowIndex`, `ColumnIndex`, and `RowSpan` for a single merge, and by passing multiple `MergeCellInfo` objects with the same parameters in an array for batch merging.
545+
The following sample demonstrates programmatic row spanning by calling `MergeCellsAsync` with parameters such as `RowIndex`, `ColumnIndex`, and `RowSpan` for a single merge, and by passing multiple `MergeCellInfo` objects with the same parameters in an array for batch merging.
546546

547547
{% tabs %}
548548
{% highlight razor tabtitle="Index.razor" %}
@@ -553,7 +553,7 @@ The following sample demonstrates programmatic row spanning by calling `MergeCel
553553
<SfButton OnClick="MergeCellsAsync">Merge Cell</SfButton>
554554
<SfButton OnClick="MergeMultipleCellsAsync">Merge Multiple Cells</SfButton>
555555

556-
<SfTreeGrid TValue="ProjectTask" @ref="Grid" DataSource="@Tasks" ChildMapping="Children" TreeColumnIndex="0" AllowPaging="true" GridLines="GridLine.Both">
556+
<SfTreeGrid TValue="ProjectTask" @ref="TreeGrid" DataSource="@Tasks" ChildMapping="Children" TreeColumnIndex="0" AllowPaging="true" GridLines="GridLine.Both">
557557
<TreeGridColumns>
558558
<TreeGridColumn Field="@nameof(ProjectTask.ActivityName)" HeaderText="Activity Name" Width="180" />
559559
<TreeGridColumn Field="@nameof(ProjectTask.StartDate)" HeaderText="Start Date" Format="d" Type="ColumnType.Date" Width="130" />
@@ -566,12 +566,12 @@ The following sample demonstrates programmatic row spanning by calling `MergeCel
566566

567567
@code
568568
{
569-
private SfTreeGrid<ProjectTask> Grid;
569+
private SfTreeGrid<ProjectTask> TreeGrid;
570570
public List<ProjectTask> Tasks { get; set; }
571571

572572
public async Task MergeCellsAsync()
573573
{
574-
await Grid.MergeCellsAsync(new MergeCellInfo
574+
await TreeGrid.MergeCellsAsync(new MergeCellInfo
575575
{
576576
RowIndex = 1,
577577
ColumnIndex = 1,
@@ -581,7 +581,7 @@ The following sample demonstrates programmatic row spanning by calling `MergeCel
581581

582582
public async Task MergeMultipleCellsAsync()
583583
{
584-
await Grid.MergeCellsAsync(new[]
584+
await TreeGrid.MergeCellsAsync(new[]
585585
{
586586
new MergeCellInfo { RowIndex = 0, ColumnIndex = 0, RowSpan = 2 },
587587
new MergeCellInfo { RowIndex = 5, ColumnIndex = 0, RowSpan = 3 },
@@ -779,7 +779,7 @@ To identify a merged region, use the following properties of the UnmergeCellInfo
779779
| RowIndex | int | The zero-based index of the anchor row (top-left cell of the merged region). |
780780
| ColumnIndex | int | The zero-based index of the anchor column (top-left cell of the merged region). |
781781

782-
This sample demonstrates clearing merged regions in the TreeGrid by calling `UnmergeCellsAsync` with `RowIndex` and `ColumnIndex` to remove specific spans, passing multiple `UnmergeCellInfo` objects for batch unmerging, and using `UnmergeAllAsync` to reset all merged cells at once.
782+
This sample demonstrates clearing merged regions in the TreeGrid by calling `UnmergeCellsAsync` with parameters such as `RowIndex` and `ColumnIndex` to remove specific spans, passing multiple `UnmergeCellInfo` objects for batch unmerging, and using `UnmergeAllAsync` to reset all merged cells at once.
783783

784784
{% tabs %}
785785
{% highlight razor tabtitle="Index.razor" %}
@@ -794,7 +794,7 @@ This sample demonstrates clearing merged regions in the TreeGrid by calling `Unm
794794

795795
<SfButton OnClick="UnMergeAllCells">UnMerge All Cells</SfButton>
796796

797-
<SfTreeGrid TValue="ProjectTask" @ref="Grid" DataSource="@Tasks" ChildMapping="Children" TreeColumnIndex="0" AllowPaging="true" GridLines="GridLine.Both">
797+
<SfTreeGrid TValue="ProjectTask" @ref="TreeGrid" DataSource="@Tasks" ChildMapping="Children" TreeColumnIndex="0" AllowPaging="true" GridLines="GridLine.Both">
798798
<TreeGridColumns>
799799
<TreeGridColumn Field="@nameof(ProjectTask.ActivityName)" HeaderText="Activity Name" Width="180" />
800800
<TreeGridColumn Field="@nameof(ProjectTask.StartDate)" HeaderText="Start Date" Format="d" Type="ColumnType.Date" Width="130" />
@@ -807,12 +807,12 @@ This sample demonstrates clearing merged regions in the TreeGrid by calling `Unm
807807

808808
@code
809809
{
810-
private SfTreeGrid<ProjectTask> Grid;
810+
private SfTreeGrid<ProjectTask> TreeGrid;
811811
public List<ProjectTask> Tasks { get; set; }
812812

813813
public async Task MergeCellsAsync()
814814
{
815-
await Grid.MergeCellsAsync(new MergeCellInfo
815+
await TreeGrid.MergeCellsAsync(new MergeCellInfo
816816
{
817817
RowIndex = 1,
818818
ColumnIndex = 1,
@@ -822,7 +822,7 @@ This sample demonstrates clearing merged regions in the TreeGrid by calling `Unm
822822

823823
public async Task UnMergeCell()
824824
{
825-
await Grid.UnmergeCellsAsync(new UnmergeCellInfo
825+
await TreeGrid.UnmergeCellsAsync(new UnmergeCellInfo
826826
{
827827
RowIndex = 1,
828828
RowSpan = 1,
@@ -831,7 +831,7 @@ This sample demonstrates clearing merged regions in the TreeGrid by calling `Unm
831831

832832
public async Task MergeMultipleCellsAsync()
833833
{
834-
await Grid.MergeCellsAsync(new[]
834+
await TreeGrid.MergeCellsAsync(new[]
835835
{
836836
new MergeCellInfo { RowIndex = 0, ColumnIndex = 0, RowSpan = 2 },
837837
new MergeCellInfo { RowIndex = 5, ColumnIndex = 0, RowSpan = 3 },
@@ -841,7 +841,7 @@ This sample demonstrates clearing merged regions in the TreeGrid by calling `Unm
841841

842842
public async Task UnMergeCells()
843843
{
844-
await Grid.UnmergeCellsAsync(new[]
844+
await TreeGrid.UnmergeCellsAsync(new[]
845845
{
846846
new UnmergeCellInfo { RowIndex = 0, ColumnIndex = 0 },
847847
new UnmergeCellInfo { RowIndex = 5, ColumnIndex = 0 },
@@ -851,7 +851,7 @@ This sample demonstrates clearing merged regions in the TreeGrid by calling `Unm
851851

852852
public async Task UnMergeAllCells()
853853
{
854-
await Grid.UnmergeAllAsync();
854+
await TreeGrid.UnmergeAllAsync();
855855
}
856856

857857
protected override void OnInitialized()

0 commit comments

Comments
 (0)