Skip to content

Commit 42d71c9

Browse files
authored
Merge pull request #6677 from syncfusion-content/983239-HowTo3
983239: How to folder files updated
2 parents 85121b0 + 519669d commit 42d71c9

File tree

5 files changed

+46
-37
lines changed

5 files changed

+46
-37
lines changed

blazor/treegrid/how-to/customize-column-styles.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
22
layout: post
33
title: Customize Column Styles in Blazor TreeGrid Component | Syncfusion
4-
description: Checkout and learn here all about Customize Column Styles in Syncfusion Blazor TreeGrid component and more.
4+
description: Learn how to apply custom styles to specific columns in the Syncfusion Blazor TreeGrid component and more.
55
platform: Blazor
6-
control: Tree Grid
6+
control: TreeGrid
77
documentation: ug
88
---
99

1010
# Customize Column Styles in Blazor TreeGrid Component
1111

12-
The appearance of the header and content of a particular column can be customized using the [CustomAttributes](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumn.html#Syncfusion_Blazor_TreeGrid_TreeGridColumn_CustomAttributes) property.
12+
You can customize the appearance of both the header and content cells of specific columns in the TreeGrid using the [CustomAttributes](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumn.html#Syncfusion_Blazor_TreeGrid_TreeGridColumn_CustomAttributes) property.
1313

14-
To customize the Tree Grid column, follow the given steps:
14+
Follow the steps below to apply custom styles to a column:
1515

1616
**Step 1**:
1717

18-
Create a CSS class with custom style to override the default style for row cell and header cell.
18+
Define a CSS class with the desired styles to override the default appearance of the row and header cells.
1919

2020
```css
2121
.e-attr{
@@ -28,15 +28,15 @@ Create a CSS class with custom style to override the default style for row cell
2828

2929
**Step 2**:
3030

31-
Add the custom CSS class to the specified column by using the [CustomAttributes](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumn.html#Syncfusion_Blazor_TreeGrid_TreeGridColumn_CustomAttributes) property.
31+
Apply the custom CSS class to the target column using the [CustomAttributes](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumn.html#Syncfusion_Blazor_TreeGrid_TreeGridColumn_CustomAttributes) property.
3232

3333
{% tabs %}
3434

3535
{% highlight razor %}
3636

3737
@using TreeGridComponent.Data;
38-
@using Syncfusion.Blazor.Grids;
39-
@using Syncfusion.Blazor.TreeGrid;
38+
@using Syncfusion.Blazor.Grids;
39+
@using Syncfusion.Blazor.TreeGrid;
4040

4141
<SfTreeGrid @ref="TreeGrid" DataSource="@TreeGridData" IdMapping="TaskId" ParentIdMapping="ParentId"
4242
TreeColumnIndex="1" AllowPaging="true" Height="200">
@@ -59,7 +59,7 @@ Add the custom CSS class to the specified column by using the [CustomAttributes]
5959

6060

6161
@code{
62-
SfTreeGrid<TreeData> TreeGrid;
62+
SfTreeGrid<TreeData> TreeGrid;
6363

6464
public List<TreeData> TreeGridData { get; set; }
6565

blazor/treegrid/how-to/customize-icon-column-menu.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
11
---
22
layout: post
33
title: Customize column menu icon in Blazor TreeGrid Component | Syncfusion
4-
description: Checkout and learn here all about how to customize column menu icon in Syncfusion Blazor TreeGrid component and more.
4+
description: Learn how to override the default column menu icon in the Syncfusion Blazor TreeGrid component using custom CSS.
55
platform: Blazor
6-
control: Tree Grid
6+
control: TreeGrid
77
documentation: ug
88
---
99

1010
# Customize column menu icon in Blazor TreeGrid Component
1111

12-
The column menu icon can be customized by overriding the default icon class `.e-icons.e-columnmenu` with the `content` property.
12+
You can customize the column menu icon in the TreeGrid by overriding the default icon class `.e-icons.e-columnmenu` using the `content` property in CSS. This allows you to replace the default glyph with a custom one from the Syncfusion icon font set.
13+
14+
To apply this customization, ensure that the TreeGrid has the column menu feature enabled.
1315

1416
```css
1517
.e-grid .e-columnheader .e-icons.e-columnmenu::before {
1618
content: "\e705";
1719
}
1820
```
1921

20-
This is demonstrated in the below sample code,
22+
The following example demonstrates how to apply a custom icon:
2123

2224
{% tabs %}
2325

2426
{% highlight razor %}
2527

2628
@using TreeGridComponent.Data;
27-
@using Syncfusion.Blazor.Grids;
28-
@using Syncfusion.Blazor.TreeGrid;
29+
@using Syncfusion.Blazor.Grids;
30+
@using Syncfusion.Blazor.TreeGrid;
2931

3032
<SfTreeGrid height="315" DataSource="@TreeData" IdMapping="TaskId" ParentIdMapping="ParentId" AllowPaging="true" TreeColumnIndex="1" ShowColumnMenu="true" AllowSorting="true">
3133
<TreeGridColumns>
@@ -67,7 +69,7 @@ public class WrapData
6769
public DateTime? StartDate { get; set; }
6870
public DateTime? EndDate { get; set; }
6971
public int? Duration { get; set; }
70-
public String Progress { get; set; }
72+
public string Progress { get; set; }
7173
public string Priority { get; set; }
7274
public bool Approved { get; set; }
7375
public int Resources { get; set; }

blazor/treegrid/how-to/display-custom-tool-tip-in-treegrid-cell.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
---
22
layout: post
3-
title: Display Custom Tooltip in Blazor Tree Grid Cell | Syncfusion
4-
description: Learn here all about displaying Custom Tooltip in Tree Grid cell in Syncfusion Blazor TreeGrid component and more.
3+
title: Display Custom Tooltip in Blazor TreeGrid Cell | Syncfusion
4+
description: Learn how to display custom tooltips in TreeGrid cells using the Column Template and SfTooltip components in Syncfusion Blazor TreeGrid.
55
platform: Blazor
6-
control: Tree Grid
6+
control: TreeGrid
77
documentation: ug
88
---
99

10-
# Display Custom Tooltip in Tree Grid cell in Blazor TreeGrid Component
10+
# Display Custom Tooltip in Blazor TreeGrid cell
1111

12-
The custom tooltip in the Tree Grid column can be displayed using the [Column Template](https://blazor.syncfusion.com/documentation/treegrid/columns/column-template) feature by rendering the [SfTooltip](https://blazor.syncfusion.com/documentation/tooltip/getting-started) components inside the template.
12+
Custom tooltips can be displayed in TreeGrid cells by using the [Column Template](https://blazor.syncfusion.com/documentation/treegrid/columns/column-template) feature. This can be achieved by rendering the [Tooltip](https://blazor.syncfusion.com/documentation/tooltip/getting-started) component inside the column template.
1313

14-
This is demonstrated in the below sample code where the tooltip is rendered for **TaskName** column using [Column Template](https://blazor.syncfusion.com/documentation/treegrid/columns/column-template).
14+
The following example demonstrates how to render a tooltip for the **TaskName** column using the `SfTooltip` component.
1515

1616
{% tabs %}
1717

1818
{% highlight razor %}
1919

2020
@using TreeGridComponent.Data;
21-
@using Syncfusion.Blazor.Grids;
22-
@using Syncfusion.Blazor.TreeGrid;
21+
@using Syncfusion.Blazor.Grids;
22+
@using Syncfusion.Blazor.TreeGrid;
2323
@using Syncfusion.Blazor.Popups;
2424

2525
<SfTreeGrid @ref="TreeGrid" DataSource="@TreeGridData" IdMapping="TaskId" ParentIdMapping="ParentId" TreeColumnIndex="1"

blazor/treegrid/how-to/editing-with-template-column.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
---
22
layout: post
3-
title: Editing with template column in Blazor TreeGrid Component | Syncfusion
4-
description: Checkout and learn here all about editing with template column in Syncfusion Blazor TreeGrid component and more.
3+
title: Editing with Template Column in Blazor TreeGrid Component | Syncfusion
4+
description: Learn how to enable editing for template columns in the Syncfusion Blazor TreeGrid component using the Field property and TreeGridEditSettings.
55
platform: Blazor
6-
control: Tree Grid
6+
control: TreeGrid
77
documentation: ug
88
---
99

10-
# Editing with template column in Blazor TreeGrid Component
10+
# Editing Template Column in Syncfusion Blazor TreeGrid Component
1111

12-
A template column value can be edited by defining the [Field](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumn.html#Syncfusion_Blazor_TreeGrid_TreeGridColumn_Field) property for that particular [TreeGridColumn](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumn.html) component.
12+
To enable editing for a template column in the TreeGrid, define the [Field](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumn.html#Syncfusion_Blazor_TreeGrid_TreeGridColumn_Field) property for the corresponding [TreeGridColumn](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridColumn.html) component. This ensures that the column is recognized as editable during row editing operations.
13+
14+
The following example demonstrates how to configure a template column for editing:
1315

1416
{% tabs %}
1517

1618
{% highlight razor %}
1719

1820
@using TreeGridComponent.Data;
19-
@using Syncfusion.Blazor.Grids;
20-
@using Syncfusion.Blazor.TreeGrid;
21+
@using Syncfusion.Blazor.Grids;
22+
@using Syncfusion.Blazor.TreeGrid;
2123

2224
<SfTreeGrid DataSource="@TreeGridData" IdMapping="TaskId" ParentIdMapping="ParentId" AllowPaging="true"
2325
TreeColumnIndex="1" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })">
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
layout: post
3-
title: Hide Tree Grid Header in Blazor TreeGrid Component | Syncfusion
4-
description: Checkout and learn here all about hiding Tree Grid Header in Syncfusion Blazor TreeGrid component and more.
3+
title: Hide TreeGrid Header in Blazor TreeGrid Component | Syncfusion
4+
description: Learn how to hide the header in the Syncfusion Blazor TreeGrid component using custom styles and more.
55
platform: Blazor
6-
control: Tree Grid
6+
control: TreeGrid
77
documentation: ug
88
---
99

10-
# Hide Tree Grid Header in Blazor TreeGrid Component
10+
# Hide TreeGrid Header in Syncfusion Blazor TreeGrid Component
1111

12-
The Tree Grid header can be hidden by applying the below styles to Tree Grid component.
12+
The TreeGrid header can be hidden by applying custom CSS styles to the component. This approach is useful for presenting a cleaner layout or embedding the TreeGrid within a minimal user interface.
1313

1414
```html
1515
<style>
@@ -19,6 +19,11 @@ documentation: ug
1919
</style>
2020
```
2121

22-
N> If you want to hide the header for particular Tree Grid, then apply the above styles to that Tree Grid using the ID (#TreeGrid.e-treegrid .e-gridheader .e-columnheader) property value.
22+
N> To hide the header for a specific TreeGrid instance, apply the above styles using its unique ID selector. For example:
23+
```css
24+
#TreeGrid.e-treegrid .e-gridheader .e-columnheader {
25+
display: none;
26+
}
27+
```
2328

2429
![Hiding Header in Blazor TreeGrid](../images/blazor-treegrid-hide-header.PNG)

0 commit comments

Comments
 (0)