Skip to content

Commit 5e01a06

Browse files
Merge pull request #6629 from syncfusion-content/983313-Deprecated
983313: Files update.
2 parents a874723 + 5c43f90 commit 5e01a06

25 files changed

+74
-74
lines changed

blazor/treegrid/clipboard.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ namespace TreeGridComponent.Data {
8787

8888
## Copy to clipboard by external buttons
8989

90-
To copy the data of the selected rows or cells into the clipboard with help of external buttons, invoke the `copy` method.
90+
To copy the data of the selected rows or cells into the clipboard with help of external buttons, invoke the `copyAsync` method.
9191

9292
{% tabs %}
9393

@@ -123,12 +123,12 @@ To copy the data of the selected rows or cells into the clipboard with help of e
123123

124124
public async void Copy()
125125
{
126-
await this.TreeGrid.Copy();
126+
await this.TreeGrid.CopyAsync();
127127
}
128128

129129
public async void CopyHeader()
130130
{
131-
await this.TreeGrid.Copy(true);
131+
await this.TreeGrid.CopyAsync(true);
132132
}
133133
}
134134

blazor/treegrid/columns/column-chooser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ The column chooser has options to show or hide columns dynamically. It can be en
114114
}
115115
public void Show()
116116
{
117-
this.TreeGrid.OpenColumnChooser(200, 50);
117+
this.TreeGrid.OpenColumnChooserAsync(200, 50);
118118
}
119119
}
120120

blazor/treegrid/columns/columns.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public class TreeDataFormat
467467

468468
## AutoFit specific columns
469469

470-
The **AutoFitColumns** method resizes the column to fit the widest cell's content without wrapping. A specific column can be autofitted at initial rendering by invoking the [AutoFitColumns](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_AutoFitColumnsAsync_System_String___) method in [DataBound](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridEvents-1.html#Syncfusion_Blazor_TreeGrid_TreeGridEvents_1_DataBound) event.
470+
The **AutoFitColumnsAsync** method resizes the column to fit the widest cell's content without wrapping. A specific column can be autofitted at initial rendering by invoking the [AutoFitColumnsAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_AutoFitColumnsAsync_System_String___) method in [DataBound](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridEvents-1.html#Syncfusion_Blazor_TreeGrid_TreeGridEvents_1_DataBound) event.
471471

472472
{% tabs %}
473473

@@ -498,7 +498,7 @@ The **AutoFitColumns** method resizes the column to fit the widest cell's conten
498498

499499
private void OnDataBound(object e)
500500
{
501-
this.TreeGrid.AutoFitColumns(new List<string>() { "TaskName" });
501+
this.TreeGrid.AutoFitColumnsAsync(new List<string>() { "TaskName" });
502502
}
503503
}
504504

@@ -543,7 +543,7 @@ public class TreeData
543543

544544
![Blazor Tree Grid with AutoFit Columns](../images/blazor-treegrid-autofit-column.png)
545545

546-
N> All the columns can be autofitted by invoking the **AutoFitColumns** method without column names.
546+
N> All the columns can be autofitted by invoking the **AutoFitColumnsAsync** method without column names.
547547

548548
## Lock columns
549549

@@ -842,7 +842,7 @@ public class TreeData
842842

843843
## Show or Hide Columns by external button
844844

845-
The tree grid columns can be shown or hidden dynamically using the external buttons by invoking the [ShowColumns](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_ShowColumns_System_Object_System_String_) or [HideColumns](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_HideColumns_System_Object_System_String_) method.
845+
The tree grid columns can be shown or hidden dynamically using the external buttons by invoking the [ShowColumnsAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_ShowColumnsAsync_System_String___System_String_) or [HideColumnsAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_HideColumnsAsync_System_String___System_String_) method.
846846

847847
{% tabs %}
848848

@@ -874,11 +874,11 @@ The tree grid columns can be shown or hidden dynamically using the external butt
874874
}
875875
private void HideColumns()
876876
{
877-
this.TreeGrid.HideColumns(ColumnItems); //hide by HeaderText
877+
this.TreeGrid.HideColumnsAsync(ColumnItems); //hide by HeaderText
878878
}
879879
private void ShowColumns()
880880
{
881-
this.TreeGrid.ShowColumns(ColumnItems); //show by HeaderText
881+
this.TreeGrid.ShowColumnsAsync(ColumnItems); //show by HeaderText
882882
}
883883
}
884884

blazor/treegrid/context-menu.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ The following sample code demonstrates defining custom context menu item and its
135135
{
136136
if (args.Item.Id == "copywithheader")
137137
{
138-
this.TreeGrid.Copy(true);
138+
this.TreeGrid.CopyAsync(true);
139139
}
140140
}
141141
}

blazor/treegrid/editing/batch-editing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ documentation: ug
99

1010
# Batch Editing in Blazor Tree Grid Component
1111

12-
In the Batch edit mode, when the tree grid cell is double-clicked, the target cell goes into edit state. It can be bulk saved (added, changed and deleted data in the single request) to the data source by clicking on the toolbar's **Update** button or by externally invoking the [EndEdit](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_EndEdit) method.
12+
In the Batch edit mode, when the tree grid cell is double-clicked, the target cell goes into edit state. It can be bulk saved (added, changed and deleted data in the single request) to the data source by clicking on the toolbar's **Update** button or by externally invoking the [EndEditAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_EndEditAsync) method.
1313
To enable Batch edit, set the [Mode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridEditSettings.html#Syncfusion_Blazor_TreeGrid_TreeGridEditSettings_Mode) property of the `TreeGridEditSettings` as **Batch**.
1414

1515
{% tabs %}

blazor/treegrid/editing/dialog-editing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ In the following example, the dialog's header text and footer button content are
134134
}
135135
public async Task Cancel()
136136
{
137-
await TreeGrid.CloseEdit(); //Cancel editing action
137+
await TreeGrid.CloseEditAsync(); //Cancel editing action
138138
}
139139
public async Task Save()
140140
{
141-
await TreeGrid.EndEdit(); //Save the edited/added data to Grid
141+
await TreeGrid.EndEditAsync(); //Save the edited/added data to Grid
142142
}
143143
protected override void OnInitialized()
144144
{

blazor/treegrid/editing/edit.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -587,10 +587,10 @@ public class TreeData
587587

588588
## Performing CRUD operations programmatically
589589

590-
Perform the CRUD operations like **Add**, **Update**, **Delete** by using the `AddRecord`, `UpdateRow`, `DeleteRow` methods.
590+
Perform the CRUD operations like **Add**, **Update**, **Delete** by using the `AddRecordAsync`, `UpdateRowAsync`, `DeleteRow` methods.
591591

592-
* **AddRecord** - Add a new record into the tree grid.
593-
* **UpdateRow** - Update an existing record in a tree grid.
592+
* **AddRecordAsync** - Add a new record into the tree grid.
593+
* **UpdateRowAsync** - Update an existing record in a tree grid.
594594
* **DeleteRow** - Delete a selected row from the tree grid.
595595

596596
{% tabs %}
@@ -634,7 +634,7 @@ Perform the CRUD operations like **Add**, **Update**, **Delete** by using the `A
634634
Priority = "Low",
635635
ParentId = null
636636
};
637-
await this.treegrid.AddRecord(adddata);
637+
await this.treegrid.AddRecordAsync(adddata);
638638
}
639639

640640
public async Task Update()
@@ -645,7 +645,7 @@ Perform the CRUD operations like **Add**, **Update**, **Delete** by using the `A
645645

646646
public async Task Delete()
647647
{
648-
await this.treegrid.DeleteRecord();
648+
await this.treegrid.DeleteRecordAsync();
649649
}
650650
}
651651

@@ -797,7 +797,7 @@ public class TreeData
797797

798798
## Custom external edit form
799799

800-
Perform the edit operation of tree grid in a custom external form. The edit operation can be done by the [RowSelected](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridEvents-1.html#Syncfusion_Blazor_TreeGrid_TreeGridEvents_1_RowSelected) event and `UpdateRow` method of tree grid.
800+
Perform the edit operation of tree grid in a custom external form. The edit operation can be done by the [RowSelected](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridEvents-1.html#Syncfusion_Blazor_TreeGrid_TreeGridEvents_1_RowSelected) event and `UpdateRowAsync` method of tree grid.
801801

802802
{% tabs %}
803803

@@ -872,7 +872,7 @@ Perform the edit operation of tree grid in a custom external form. The edit oper
872872
}
873873
async Task Save()
874874
{
875-
await this.treegrid.UpdateRow(1, data);
875+
await this.treegrid.UpdateRowAsync(1, data);
876876
}
877877
public void RowSelectHandler(RowSelectEventArgs<TreeData.BusinessObject> args)
878878
{

blazor/treegrid/events.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ The [DetailDataBound](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Tr
19291929
{
19301930
if (Args.Item.Text == "PDF Export")
19311931
{
1932-
await this.TreeGrid.PdfExport();
1932+
await this.TreeGrid. ExportToPdfAsync();
19331933
}
19341934
}
19351935
public void PdfExportHandler(object args)
@@ -1991,7 +1991,7 @@ The [DetailDataBound](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Tr
19911991
{
19921992
if (Args.Item.Text == "PDF Export")
19931993
{
1994-
await this.TreeGrid.PdfExport();
1994+
await this.TreeGrid.ExportToPdfAsync();
19951995
}
19961996
}
19971997
public void PdfQueryCellInfoHandler(PdfQueryCellInfoEventArgs<BusinessObject> args)
@@ -2052,7 +2052,7 @@ The [DetailDataBound](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Tr
20522052
{
20532053
if (Args.Item.Text == "Excel Export")
20542054
{
2055-
await this.TreeGrid.ExcelExport();
2055+
await this.TreeGrid.ExportToExcelAsync();
20562056
}
20572057
}
20582058
public void ExcelExportHandler(object args)
@@ -2114,7 +2114,7 @@ The [DetailDataBound](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Tr
21142114
{
21152115
if (Args.Item.Text == "Excel Export")
21162116
{
2117-
await this.TreeGrid.ExcelExport();
2117+
await this.TreeGrid.ExcelExportAsync();
21182118
}
21192119
}
21202120
public void ExcelQueryCellInfoHandler(ExcelQueryCellInfoEventArgs<BusinessObject> args)

blazor/treegrid/excel-export.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ documentation: ug
1010
# Excel Export in Blazor TreeGrid Component
1111

1212
The excel export allows exporting Tree Grid data to Excel document. Use the
13-
**ExcelExport** method for exporting. To enable Excel export in the Tree Grid, set the [AllowExcelExport](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_AllowExcelExport) property as true.
13+
**ExportToExcelAsync** method for exporting. To enable Excel export in the Tree Grid, set the [AllowExcelExport](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_AllowExcelExport) property as true.
1414

1515
To know about exporting tree grid data to Excel document in Blazor tree grid component, you can check on this video.
1616

@@ -50,7 +50,7 @@ To know about exporting tree grid data to Excel document in Blazor tree grid com
5050
{
5151
if(Args.Item.Text == "Excel Export")
5252
{
53-
this.TreeGrid.ExcelExport();
53+
this.TreeGrid.ExportToExcelAsync();
5454
}
5555
}
5656
}
@@ -137,7 +137,7 @@ The excel export provides an option to export the current page into excel. To ex
137137
{
138138
Syncfusion.Blazor.Grids.ExcelExportProperties ExportProperties = new Syncfusion.Blazor.Grids.ExcelExportProperties();
139139
ExportProperties.ExportType = Syncfusion.Blazor.Grids.ExportType.CurrentPage;
140-
this.TreeGrid.ExcelExport(ExportProperties);
140+
this.TreeGrid.ExportToExcelAsync(ExportProperties);
141141
}
142142
}
143143
}
@@ -220,7 +220,7 @@ The excel export provides an option to export hidden columns of Tree Grid by def
220220
{
221221
Syncfusion.Blazor.Grids.ExcelExportProperties ExportProperties = new Syncfusion.Blazor.Grids.ExcelExportProperties();
222222
ExportProperties.IncludeHiddenColumn = true;
223-
this.TreeGrid.ExcelExport(ExportProperties);
223+
this.TreeGrid.ExportToExcelAsync(ExportProperties);
224224
}
225225
}
226226
}
@@ -316,7 +316,7 @@ To apply theme in exported Excel, define the **theme** in export properties.
316316
Theme.Record = ThemeStyle;
317317
Theme.Caption = ThemeStyle;
318318

319-
this.TreeGrid.ExcelExport(ExportProperties);
319+
this.TreeGrid.ExportToExcelAsync(ExportProperties);
320320
}
321321
}
322322
}
@@ -401,7 +401,7 @@ The file name can be assigned for the exported document by defining **fileName**
401401
{
402402
Syncfusion.Blazor.Grids.ExcelExportProperties ExportProperties = new Syncfusion.Blazor.Grids.ExcelExportProperties();
403403
ExportProperties.FileName = "New.xlsx";
404-
this.TreeGrid.ExcelExport(ExportProperties);
404+
this.TreeGrid.ExportToExcelAsync(ExportProperties);
405405
}
406406
}
407407
}
@@ -446,7 +446,7 @@ public class TreeData
446446

447447
### To persist collapsed state
448448

449-
The collapsed state can be persisted in the exported document by defining **IsCollapsedStatePersist** property as true in the **TreeGridExcelExportProperties** parameter of the [ExcelExport](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_ExcelExport_Syncfusion_Blazor_Grids_ExcelExportProperties_System_Nullable_System_Boolean__System_Object_System_Nullable_System_Boolean__) method.
449+
The collapsed state can be persisted in the exported document by defining **IsCollapsedStatePersist** property as true in the **TreeGridExcelExportProperties** parameter of the [ExportToExcelAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_ExportToExcelAsync_Syncfusion_Blazor_Grids_ExcelExportProperties_) method.
450450

451451
{% tabs %}
452452

@@ -483,7 +483,7 @@ The collapsed state can be persisted in the exported document by defining **IsCo
483483
{
484484
Syncfusion.Blazor.TreeGrid.TreeGridExcelExportProperties ExportProperties = new Syncfusion.Blazor.TreeGrid.TreeGridExcelExportProperties();
485485
ExportProperties.IsCollapsedStatePersist = true;
486-
this.TreeGrid.ExcelExport(ExportProperties);
486+
this.TreeGrid.ExportToExcelAsync(ExportProperties);
487487
}
488488
}
489489
}

blazor/treegrid/exporting.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ documentation: ug
1010
# PDF Export in Blazor TreeGrid Component
1111

1212
PDF export allows exporting Tree Grid data to PDF document. You need to use the
13-
**PdfExport** method for exporting. To enable PDF export in the Tree Grid, set the [AllowPdfExport](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor~Syncfusion.Blazor.Grids.EjsGrid~AllowPdfExport.html) as true.
13+
**ExportToPdfAsync** method for exporting. To enable PDF export in the Tree Grid, set the [AllowPdfExport](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor~Syncfusion.Blazor.Grids.EjsGrid~AllowPdfExport.html) as true.
1414

1515
To know about exporting tree grid data to PDF document in Blazor tree grid component, you can check on this video.
1616

@@ -50,7 +50,7 @@ To know about exporting tree grid data to PDF document in Blazor tree grid compo
5050
{
5151
if(Args.Item.Text == "PDF Export")
5252
{
53-
this.TreeGrid.PdfExport();
53+
this.TreeGrid.ExportToPdfAsync();
5454
}
5555
}
5656
}
@@ -137,7 +137,7 @@ The file name can be assigned for the exported document by defining **fileName**
137137
{
138138
Syncfusion.Blazor.Grids.PdfExportProperties ExportProperties = new Syncfusion.Blazor.Grids.PdfExportProperties();
139139
ExportProperties.FileName = "test.pdf";
140-
this.TreeGrid.PdfExport(ExportProperties);
140+
this.TreeGrid.ExportToPdfAsync(ExportProperties);
141141
}
142142
}
143143
}
@@ -220,7 +220,7 @@ Page orientation can be changed Landscape(Default Portrait) for the exported doc
220220
{
221221
Syncfusion.Blazor.Grids.PdfExportProperties ExportProperties = new Syncfusion.Blazor.Grids.PdfExportProperties();
222222
ExportProperties.PageOrientation = Syncfusion.Blazor.Grids.PageOrientation.Landscape;
223-
this.TreeGrid.PdfExport(ExportProperties);
223+
this.TreeGrid.ExportToPdfAsync(ExportProperties);
224224
}
225225
}
226226
}
@@ -333,7 +333,7 @@ Supported page sizes are:
333333
{
334334
Syncfusion.Blazor.Grids.PdfExportProperties ExportProperties = new Syncfusion.Blazor.Grids.PdfExportProperties();
335335
ExportProperties.PageSize = Syncfusion.Blazor.Grids.PdfPageSize.Letter;
336-
this.TreeGrid.PdfExport(ExportProperties);
336+
this.TreeGrid.ExportToPdfAsync(ExportProperties);
337337
}
338338
}
339339
}
@@ -416,7 +416,7 @@ PDF export provides an option to export the current page into PDF. To export cur
416416
{
417417
Syncfusion.Blazor.Grids.PdfExportProperties ExportProperties = new Syncfusion.Blazor.Grids.PdfExportProperties();
418418
ExportProperties.ExportType = Syncfusion.Blazor.Grids.ExportType.CurrentPage;
419-
this.TreeGrid.PdfExport(ExportProperties);
419+
this.TreeGrid.ExportToPdfAsync(ExportProperties);
420420
}
421421
}
422422
}
@@ -499,7 +499,7 @@ PDF export provides an option to export hidden columns of the Tree Grid by defin
499499
{
500500
Syncfusion.Blazor.Grids.PdfExportProperties ExportProperties = new Syncfusion.Blazor.Grids.PdfExportProperties();
501501
ExportProperties.IncludeHiddenColumn = true;
502-
this.TreeGrid.PdfExport(ExportProperties);
502+
this.TreeGrid.ExportToPdfAsync(ExportProperties);
503503
}
504504
}
505505
}
@@ -617,7 +617,7 @@ To apply theme in exported PDF, define the **theme** in export properties.
617617
};
618618
Theme.Caption = CaptionThemeStyle;
619619
ExportProperties.Theme = Theme;
620-
this.TreeGrid.PdfExport(ExportProperties);
620+
this.TreeGrid.ExportToPdfAsync(ExportProperties);
621621
}
622622
}
623623
}

0 commit comments

Comments
 (0)