Skip to content

Commit b35207a

Browse files
authored
Merge pull request #6637 from syncfusion-content/983239-Columns
983239: Columns Updated
2 parents 846e1a6 + ffb17ef commit b35207a

File tree

3 files changed

+43
-38
lines changed

3 files changed

+43
-38
lines changed

blazor/treegrid/columns/column-chooser.md

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
layout: post
3-
title: Column Chooser in Blazor Tree Grid Component | Syncfusion
4-
description: Checkout and learn here all about column chooser in Syncfusion Blazor Tree Grid component and much more details.
3+
title: Column Chooser in Blazor TreeGrid Component | Syncfusion
4+
description: Checkout and learn here all about column chooser in Syncfusion Blazor TreeGrid component and much more details.
55
platform: Blazor
6-
control: Tree Grid
6+
control: TreeGrid
77
documentation: ug
88
---
99

10-
# Column Chooser in Blazor Tree Grid Component
10+
# Column Chooser in Blazor TreeGrid Component
1111

12-
The column chooser has options to show or hide columns dynamically. It can be enabled by defining the [ShowColumnChooser](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor~Syncfusion.Blazor.TreeGrid.SfTreeGrid~ShowColumnChooser.html) as true.
12+
The column chooser provides options to dynamically show or hide columns at runtime. Enable it by setting the [ShowColumnChooser](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor~Syncfusion.Blazor.TreeGrid.SfTreeGrid~ShowColumnChooser.html) property to true.
1313

1414
{% tabs %}
1515

@@ -78,11 +78,11 @@ public class TreeData
7878

7979
![Show or Hide Columns in Blazor TreeGrid](../images/blazor-treegrid-show-hide-column.png)
8080

81-
N> The column names can be hidden in the column chooser by defining the [ShowInColumnChooser](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor~Syncfusion.Blazor.TreeGrid.SfTreeGrid~ShowInColumnChooser.html) property as false.
81+
N> Specific columns can be excluded from the column chooser by setting the [ShowInColumnChooser](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumn.html#Syncfusion_Blazor_TreeGrid_TreeGridColumn_ShowInColumnChooser) property to false on the corresponding column.
8282

8383
## Open column chooser by external button
8484

85-
The column chooser has options to show or hide columns dynamically. It can be enabled by defining the [ShowInColumnChooser](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor~Syncfusion.Blazor.TreeGrid.SfTreeGrid~ShowInColumnChooser.html) as true.
85+
Open the column chooser programmatically, for example from an external button, by invoking the `OpenColumnChooser` method on the TreeGrid instance. Ensure [ShowColumnChooser](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor~Syncfusion.Blazor.TreeGrid.SfTreeGrid~ShowColumnChooser.html) is enabled.
8686

8787
{% tabs %}
8888

@@ -157,17 +157,17 @@ public class TreeData
157157

158158
{% endtabs %}
159159

160-
![Opening Column Chooser in Blazor Tree Grid](../images/blazor-treegrid-open-column-chooser.png)
160+
![Opening Column Chooser in Blazor TreeGrid](../images/blazor-treegrid-open-column-chooser.png)
161161

162-
N> The column names in column chooser can be hidden by defining the [ShowInColumnChooser](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor~Syncfusion.Blazor.TreeGrid.SfTreeGrid~ShowInColumnChooser.html) property as false.
162+
N> Specific columns can be excluded from the column chooser by setting the [ShowInColumnChooser](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor~Syncfusion.Blazor.TreeGrid.TreeGridColumn~ShowInColumnChooser.html) property to false on the corresponding column.
163163

164164
## Template support in column chooser
165165

166-
Template can be rendered in column chooser of tree grid by customizing the column chooser using **Template** and **FooterTemplate** of the [TreeGridColumnChooserSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumnChooserSettings.html) Component.
166+
Render a custom template in the column chooser by configuring the **Template** and **FooterTemplate** of the [TreeGridColumnChooserSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumnChooserSettings.html) component.
167167

168-
Below example demonstrates simple column chooser template using [TreeGridColumnChooserItem](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumnChooserItem.html) inside the [TreeGridColumnChooserSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumnChooserSettings.html) Component.
168+
The following example demonstrates a simple column chooser template using [TreeGridColumnChooserItem](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumnChooserItem.html) within [TreeGridColumnChooserSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumnChooserSettings.html).
169169

170-
`ColumnChooserTemplateContext` is accessible inside the `Template` from which we can access column details inside `Template` and handle template rendering of column chooser.
170+
Use `ColumnChooserTemplateContext` inside the `Template` to access column details and control template rendering of the column chooser.
171171

172172
{% tabs %}
173173

@@ -259,11 +259,11 @@ namespace TreeGridComponent.Data
259259

260260
{% endtabs %}
261261

262-
![Column Chooser Template with Blazor Tree Grid](../images/blazor-treegrid-column-chooser-template.png)
262+
![Column Chooser Template with Blazor TreeGrid](../images/blazor-treegrid-column-chooser-template.png)
263263

264264
### Custom component in column chooser template
265265

266-
In below example, we have rendered ListView as custom component inside the Template of [TreeGridColumnChooserSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumnChooserSettings.html) in tree grid. Inside the custom component, we have added image in ListView Template.
266+
In the following example, a ListView is rendered as a custom component inside the `Template` of [TreeGridColumnChooserSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumnChooserSettings.html) in the TreeGrid. Inside the custom component, an image is added in the ListView template.
267267

268268
{% tabs %}
269269

@@ -486,11 +486,11 @@ namespace TreeGridComponent.Data
486486

487487
The following output is displayed as a result of the above code example.
488488

489-
![Column Chooser Template with Blazor Tree Grid](../images/blazor-treegrid-column-with-chooser-template.png)
489+
![Column Chooser Template with Blazor TreeGrid](../images/blazor-treegrid-column-with-chooser-template.png)
490490

491491
### Column Chooser with group template
492492

493-
We can also group the columns inside the column chooser template with the help of Group Template. To group columns we need to wrap [TreeGridColumnChooserItem](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumnChooserItem.html) inside [TreeGridColumnChooserItemGroup](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumnChooserItemGroup.html) as shown in the below example code.
493+
Columns can also be grouped inside the column chooser template using a group template. To group columns, wrap [TreeGridColumnChooserItem](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumnChooserItem.html) inside [TreeGridColumnChooserItemGroup](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumnChooserItemGroup.html) as shown in the following example.
494494

495495
{% tabs %}
496496

@@ -591,4 +591,7 @@ namespace TreeGridComponent.Data
591591

592592
The following output is displayed as a result of the above code example.
593593

594-
![Column Chooser with Group in Blazor Tree Grid](../images/blazor-treegrid-column-chooser-group-template.png)
594+
595+
![Column Chooser with Group in Blazor TreeGrid](../images/blazor-treegrid-column-chooser-group-template.png)
596+
597+

blazor/treegrid/columns/column-menu.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
---
22
layout: post
3-
title: Column Menu in Blazor Tree Grid Component | Syncfusion
4-
description: Checkout here and learn more details about the column menu in the Syncfusion Blazor Tree Grid component.
3+
title: Column Menu in Blazor TreeGrid Component | Syncfusion
4+
description: Checkout here and learn more details about the column menu in the Syncfusion Blazor TreeGrid component.
55
platform: Blazor
6-
control: Tree Grid
6+
control: TreeGrid
77
documentation: ug
88
---
99

10-
# Column menu in Blazor Tree Grid Component
10+
# Column menu in Blazor TreeGrid Component
1111

12-
The column menu has options to integrate features like sorting, filtering, and autofit. It shows a menu with the integrated feature when users click on an icon in the column header. To enable column menu, define the [ShowColumnMenu](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor~Syncfusion.Blazor.TreeGrid.SfTreeGrid~ShowColumnMenu.html) property as true.
12+
The column menu provides quick access to features such as sorting, filtering, and auto-fit. It appears when users click the menu icon in a column header. To enable the column menu, set the [ShowColumnMenu](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor~Syncfusion.Blazor.TreeGrid.SfTreeGrid~ShowColumnMenu.html) property to true. Menu items are shown only when the corresponding feature is enabled (for example, AllowSorting, AllowFiltering, or AllowResizing).
1313

1414
The default items are displayed in the following table.
1515

1616
| Item | Description |
1717
|-----|-----|
1818
| **SortAscending** | Sort the current column in ascending order. |
1919
| **SortDescending** | Sort the current column in descending order. |
20-
| **AutoFit** | Auto fit the current column. |
21-
| **AutoFitAll** | Auto fit all columns. |
22-
| **Filter** | Show the filter option as given in **FilterSettings.Type** |
20+
| **AutoFit** | Auto-fit the current column. |
21+
| **AutoFitAll** | Auto-fit all columns. |
22+
| **Filter** | Shows the filter UI as configured in **FilterSettings.Type**. |
2323

2424
{% tabs %}
2525

@@ -85,6 +85,6 @@ public class TreeData
8585

8686
{% endtabs %}
8787

88-
![Blazor Tree Grid with Column Menu](../images/blazor-treegrid-column-menu.png)
88+
![Blazor TreeGrid with Column Menu](../images/blazor-treegrid-column-menu.png)
8989

9090
N> The column menu can be disabled for a particular column by defining the `ShowColumnMenu` property of the [TreeGridColumn](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor~Syncfusion.Blazor.TreeGrid.TreeGridColumn.html) tag helper as false.

blazor/treegrid/columns/column-reorder.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
layout: post
3-
title: Column Reorder in Blazor Tree Grid Component | Syncfusion
4-
description: Checkout here and learn more details about the column reorder in the Syncfusion Blazor Tree Grid component.
3+
title: Column Reorder in Blazor TreeGrid Component | Syncfusion
4+
description: Checkout here and learn more details about the column reorder in the Syncfusion Blazor TreeGrid component.
55
platform: Blazor
6-
control: Tree Grid
6+
control: TreeGrid
77
documentation: ug
88
---
99

10-
# Column Reorder in Blazor Tree Grid Component
10+
# Column Reorder in Blazor TreeGrid Component
1111

12-
Reordering can be done by drag and drop of a particular column header from one index to another index within the tree grid. To enable reordering, set the [AllowReordering](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_AllowReordering) property to true.
12+
Reordering can be performed by dragging a column header from one index to another within the TreeGrid. To enable reordering, set the [AllowReordering](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_AllowReordering) property to true.
1313

1414
{% tabs %}
1515

@@ -73,13 +73,13 @@ public class TreeData
7373

7474
{% endtabs %}
7575

76-
![Reordering Columns in Blazor Tree Grid](../images/blazor-treegrid-column-reorder.gif)
76+
![Reordering Columns in Blazor TreeGrid](../images/blazor-treegrid-column-reorder.gif)
7777

7878
N> You can disable reordering a particular column by setting the `AllowReordering` property of the [TreeGridColumn](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor~Syncfusion.Blazor.TreeGrid.TreeGridColumn.html) tag helper to false.
7979

8080
## Reorder single column
8181

82-
Tree Grid has option to reorder a column either by interaction or by using the [ReorderColumnsAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_ReorderColumnsAsync_System_Collections_Generic_List_System_String__System_String_) method. In the following sample, **TaskName** column is reordered to third column position by using the method on button click.
82+
TreeGrid supports reordering a column either through interaction or programmatically using the [ReorderColumnsAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_ReorderColumnsAsync_System_Collections_Generic_List_System_String__System_String_) method. In the following sample, the **TaskName** column is moved to the third position by invoking the method on a button click.
8383

8484
{% tabs %}
8585

@@ -150,14 +150,14 @@ public class TreeData
150150

151151
{% endtabs %}
152152

153-
The following GIF represents the Reordering column **TaskName** by using the method,
154-
![Reordering Single Column in Blazor Tree Grid](../images/blazor-treegrid-reorder-single-column.gif)
153+
The following GIF represents reordering the **TaskName** column using the method.
154+
![Reordering Single Column in Blazor TreeGrid](../images/blazor-treegrid-reorder-single-column.gif)
155155

156156
## Reorder multiple columns
157157

158-
User can reorder a single column at a time by Interaction. Sometimes, you need to reorder multiple columns at the same time by passing list of columns programmatically in the [ReorderColumnsAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_ReorderColumnsAsync_System_Collections_Generic_List_System_String__System_String_) method.
158+
Users can reorder a single column at a time by interaction. To reorder multiple columns at once, pass a list of column field names programmatically to the [ReorderColumnsAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_ReorderColumnsAsync_System_Collections_Generic_List_System_String__System_String_) method.
159159

160-
In the following sample, **TaskName** and **Duration** columns are reordered to the last column position using this method on the click button.
160+
In the following sample, the **TaskName** and **Duration** columns are moved to the last position using this method on a button click.
161161

162162
{% tabs %}
163163

@@ -228,4 +228,6 @@ public class TreeData
228228

229229
{% endtabs %}
230230

231-
![Reordering Multiple Columns in Blazor Tree Grid](../images/blazor-treegrid-reorder-multiple-columns.gif)
231+
232+
![Reordering Multiple Columns in Blazor TreeGrid](../images/blazor-treegrid-reorder-multiple-columns.gif)
233+

0 commit comments

Comments
 (0)