Skip to content

Commit d59f811

Browse files
committed
Address comemnts from tech writerrs.
1 parent 1728a38 commit d59f811

File tree

13 files changed

+70
-76
lines changed

13 files changed

+70
-76
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ navigation:
541541
## End Toolbar
542542
## TreeDataGrid
543543
controls/treedatagrid:
544-
title: "DataGrid"
544+
title: "TreeDataGrid"
545545
controls/treedatagrid/populating-with-data:
546546
title: "Populating with Data"
547547
position: 2

controls/treedatagrid/columns/cell-templates.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: Columns Cell Templates
3-
page_title: .NET MAUI TelerikDataGrid Documentation - Columns Cell Templates
4-
description: Learn how to define cell templates in TelerikDataGrid for .NET MAUI columns.
3+
page_title: .NET MAUI TreeDataGrid Documentation - Columns Cell Templates
4+
description: Learn how to define cell templates in TreeDataGrid for .NET MAUI columns.
55
position: 2
6-
slug: datagrid-cell-templates
6+
slug: treedatagrid-cell-templates
77
---
88

9-
# .NET MAUI TelerikDataGrid Columns Cell Templates
9+
# .NET MAUI TreeDataGrid Columns Cell Templates
1010

11-
This article describes how to extend the functionality of the columns in the [.NET MAUI TelerikDataGrid]({%slug datagrid-overview%}) and define custom content and edit templates using the `CellContentTemplate` and `CellEditTemplate` properties.
11+
This article describes how to extend the functionality of the columns in the [.NET MAUI TelerikDataGrid]({%slug treedatagrid-overview%}) and define custom content and edit templates using the `CellContentTemplate` and `CellEditTemplate` properties.
1212

1313
* `CellContentTemplate` (`DataTemplate`)—Defines the appearance of each cell associated with the concrete column. `CellContentTemplate` gives you the opportunity to wrap the text inside each DataGrid column. You can add a Label as a content of the Text, Template Column and wrap its text using the Label's `LineBreakMode` property.
1414
* `CellContentTemplateSelector` (`DataTemplateSelector`)—Defines a `DataTemplateSelector` instance that may be used to retrieve dynamic data templates on a per-cell basis.

controls/treedatagrid/columns/footer.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ slug: treedatagrid-column-footer
1111

1212
The [Telerik UI for .NET MAUI TreeDataGrid]({%slug treedatagrid-overview%}) allows you to display additional information which applies to the columns in a specific row placed at the bottom of the control. This row consists of individual footer cells for each column.
1313

14-
By default, column footers are hidden, and, to make them visible, you have to set the `ShowColumnFooters` property to `True`.
14+
By default, column footers are hidden. To make them visible, set the `ShowColumnFooters` property to `True`.
1515

16-
The following example shows how to define a footer in the DataGrid:
16+
The following example shows how to define a footer in the TreeDataGrid:
1717

1818
```XAML
1919
<telerik:RadTreeDataGrid x:Name="dataGrid"
@@ -22,7 +22,7 @@ The following example shows how to define a footer in the DataGrid:
2222

2323
## Setting Text in the Footer
2424

25-
To define a text inside the footer you have to use the `FooterText` property. The property is per column:
25+
To define a text inside the footer, use the `FooterText` property. The property is per column:
2626

2727
```XAML
2828
<telerik:RadTreeDataGrid x:Name="dataGrid"
@@ -37,11 +37,11 @@ To define a text inside the footer you have to use the `FooterText` property. Th
3737
</telerik:RadTreeDataGrid>
3838
```
3939

40-
> Note that the footer has to be defined per column otherwise the cell will appear empty.
40+
> Define the footer per column; otherwise, the cell will appear empty.
4141
4242
## Styling
4343

44-
Use the `FooterStyle` property to style the `DataGridColumn` footer.
44+
Use the `FooterStyle` property to style the footer of the columns in the TreeDataGrid.
4545

4646
## Footer Content Customization
4747

controls/treedatagrid/columns/frozen-columns.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: Frozen Columns
3-
page_title: .NET MAUI DataGrid Documentation - Frozen Columns
3+
page_title: .NET MAUI TreeDataGrid Documentation - Frozen Columns
44
description: Learn how to freeze columns in Telerik TreeDataGrid for .NET MAUI.
55
position: 4
6-
slug: datagrid-frozen-columns
6+
slug: treedatagrid-frozen-columns
77
---
88

99
# .NET MAUI TreeDataGrid Frozen Columns
@@ -12,9 +12,7 @@ This article describes the frozen columns feature that the [.NET MAUI TreeDataGr
1212

1313
You can pin a column on the left side of the grid by setting the `IsFrozen`(`bool`) property to the column. By default the value is `False`. When setting it to `True` to a concrete column, it makes the column frozen.
1414

15-
![.NET MAUI DataGrid Frozen Column](../images/frozen-column.gif)
16-
17-
Set the column freeze in XAML
15+
The next example shows how to set the frozen columns in XAML:
1816

1917
```XAML
2018
<telerik:RadTreeDataGrid x:Name="grid"
@@ -28,23 +26,17 @@ Set the column freeze in XAML
2826
</telerik:RadTreeDataGrid>
2927
```
3028

31-
Set the column freeze programmatically.
32-
33-
<snippet id='data-grid-frozen-columns-programmatically' />
34-
3529
## Collection of Frozen Columns
3630

3731
Once a column is frozen, it is added to the `FrozenColumns` collection (read-only collection). The collection can be used only for read-only purposes and cannot be modified. Freezing/Unfreezing the columns is done only through the `IsFrozen` property of the columns.
3832

3933
## Styling
4034

41-
When there is/are frozen column(s) a splitter UI is visualized. The splitter UI splits the frozen columns from the unfrozen.
35+
When there is a frozen column, a splitter UI is visualized. The splitter UI splits the frozen columns from the unfrozen.
4236

4337
You can style the frozen splitter UI using the `FrozenColumnsSplitterStyle`(`Telerik.Maui.Controls.DataGrid.DataGridFrozenColumnsSplitterStyle`) property. The `FrozenColumnsSplitterStyle` property is a property of the DataGrid. It cannot be set on a specific column.
4438

45-
Style the splitter UI's `Width`, `BackgroundColor`, `BorderColor` and `BorderThickness`.
46-
47-
**Example for `FrozenColumnsSplitterStyle`**
39+
The next example shows how to style the splitter UI by using the `Width`, `BackgroundColor`, `BorderColor` and `BorderThickness` properties of the FrozenColumnsSplitterStyle class.
4840

4941
```XAML
5042
<telerik:RadDataGrid.FrozenColumnsSplitterStyle>

controls/treedatagrid/columns/header.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This article will guide you through the usage of the column headers, their custo
1313

1414
## Changing the Text in the Header
1515

16-
To customize text inside the header you have to use the `HeaderText` property. The property is per column. If `HeaderText` is not set, the text inside the `PropertyName` is displayed.
16+
To customize text inside the header, you use the `HeaderText` property. The property is per column. If `HeaderText` is not set, the text inside the `PropertyName` is displayed.
1717

1818
```XAML
1919
<telerik:RadTreeDataGrid x:Name="dataGrid"
@@ -29,15 +29,15 @@ To customize text inside the header you have to use the `HeaderText` property. T
2929

3030
## Sorting
3131

32-
The user of the application can sort a particular column when tapping on its header. When the data is sorted by a column, the sort indicator shows in the header.
32+
The user of the application can sort a particular column by tapping on its header. When the data is sorted by a column, the sort indicator shows in the header.
3333

34-
To learn more about the sorting functionality of the [.NET MAUI TreeDataGrid]({%slug treedatagrid-overview%}) take a look at the [Sorting]({%slug treedatagrid-sorting-overview%}) article.
34+
To learn more about the sorting functionality of the [.NET MAUI TreeDataGrid]({%slug treedatagrid-overview%}), take a look at the [Sorting]({%slug treedatagrid-sorting-overview%}) article.
3535

3636
## Filtering
3737

3838
The header of the column hosts the built-in filtering mechanism (the filter indicator which opens the Filtering UI), which allows the user to filter the data by the columns' values.
3939

40-
To learn more about the filtering functionality take a look at the [Filtering]({%slug treedatagrid-filtering-overview%}) article.
40+
To learn more about the filtering functionality, take a look at the [Filtering]({%slug treedatagrid-filtering-overview%}) article.
4141

4242
## Styling
4343

@@ -47,7 +47,7 @@ Use the `HeaderStyle` property to style the `DataGridColumn` header.
4747

4848
You can customize the content of the Header using the `HeaderContentTemplate`(`DataTemplate`) property.
4949

50-
Define the `DataTemplate` for the header:
50+
To define the `DataTemplate` for the header:
5151

5252
<snippet id='datagrid-headercontenttemplate-datatemplate' />
5353

@@ -77,7 +77,7 @@ The following example demonstrates how to apply the `BackgroundColor` property t
7777
</DataTemplate>
7878
```
7979

80-
## Customize the Column
80+
## Customizing the Column
8181

8282
Customize the column header by using the `HeaderContentTemplate`(of type `DataTemplate`) to achieve the desired full customization of the column. The property demonstrates the ability of the DataGrid to specify and show custom appearance for the column headers.
8383

controls/treedatagrid/columns/overview.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ position: 0
66
slug: treedatagrid-columns-overview
77
---
88

9-
# .NET MAUI TreeDataGrid Defining Columns
9+
{% if site.has_cta_panels == true %}
10+
{% include cta-panel-small.html %}
11+
{% endif %}
1012

11-
The [Telerik UI for .NET MAUI TreeDataGrid]({%slug treedatagrid-overview%}) inherits three approaches from the [DataGrid]({%slug datagrid-overview%}) that you can take to define different columns:
13+
# .NET MAUI TreeDataGrid: Defining Columns
1214

13-
* **Automatically**&mdash;by setting `AutoGenerateColumns` property to `True` (default value).
14-
* **Manually**&mdash;by adding columns to the DataGrid's `Columns` collection and setting the `AutoGenerateColumns` property to `False`.
15-
* **Mixed**&mdash;by adding columns to the `Columns` collection and also setting the `AutoGenerateColumns`to `True` (default value).
15+
The [Telerik UI for .NET MAUI TreeDataGrid]({%slug treedatagrid-overview%}) supports three methods for defining columns, inherited from the [DataGrid]({%slug datagrid-overview%}):
16+
17+
* Automatically&mdash;by setting `AutoGenerateColumns` property to `True` (default value).
18+
* Manually&mdash;by adding columns to the DataGrid's `Columns` collection and setting the `AutoGenerateColumns` property to `False`.
19+
* Mixed&mdash;by adding columns to the `Columns` collection and also setting the `AutoGenerateColumns`to `True` (default value).
1620

1721
## Automatic Columns Generation
1822

@@ -41,12 +45,12 @@ With the automatic columns generation TreeDataGrid will create the following col
4145

4246
Using the built-in auto generation of columns does not fit all scenarios. In such cases you can manually define the needed columns. When defining a column you can choose between several column types:
4347

44-
* [Text Column]({%slug datagrid-columns-text-column%})&mdash;Represents a column that converts the content of each associated cell to a System.String object.
48+
* [Text Column]({%slug datagrid-columns-text-column%})&mdash;Represents a column that converts the content of each associated cell to a `System.String` object.
4549
* [Numerical Column]({%slug datagrid-columns-numerical-column%})&mdash;Represents an extended `DataGridTextColumn` that presents numerical data (`int` and `double` types).
4650
* [Boolean Column]({%slug datagrid-columns-boolean-column%})&mdash;An extended `DataGridTextColumn` implementation that presents Boolean data.
4751
* [Date Column]({%slug datagrid-columns-date-column%})&mdash;An extended `DataGridTextColumn` that presents data of type `DateTime`.
4852
* [Time Column]({%slug datagrid-columns-time-column%})&mdash;Represents an extended `DataGridTextColumn` that presents the `TimeOfDay` of a `DateTime` type.
49-
* [ComboBox Column]({%slug datagrid-columns-picker-column%})&mdash;Represents an extended `DataGridTextColumn` which cell value editor is a Telerik.Maui.Controls.RadComboBox control.
53+
* [ComboBox Column]({%slug datagrid-columns-picker-column%})&mdash;Represents an extended `DataGridTextColumn`, whose cell value editor is a `Telerik.Maui.Controls.RadComboBox` control.
5054
* [Template Column]({%slug datagrid-columns-template-column%})&mdash;Represents a column that uses a `DataTemplate` to describe the content of each associated grid cell.
5155
* [ToggleRowDetails Column]({%slug datagrid-columns-toggle-column%})&mdash;Represents a column that allows the user to show and hide the row details for an item.
5256

@@ -57,7 +61,7 @@ For the typed columns (Text, Numerical, Boolean, Date, Time and ComboBox) you ca
5761

5862
> For a runnable example with the TreeDataGrid columns, see the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and go to the **TreeDataGrid > Getting Started** category.
5963
60-
## Columns Features
64+
## Column Features
6165

6266
Find below a quick overview of the TreeDataGrid's Columns features.
6367

controls/treedatagrid/columns/reordering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ slug: treedatagrid-columns-reordering
1010

1111
The [.NET MAUI TreeDataGrid]({%slug treedatagrid-overview%}) exposes a reordering feature allowing the user to drag and drop columns and change their order.
1212

13-
The following properties are relted to the reordering feature:
13+
The following properties control the reordering feature:
1414

1515
* `CanUserReorderColumns`(`bool`)&mdash;Defines whether the user can reorder the `DataGridColumns`. The default value is `true`.
1616
* `ColumnReorderIndicatorTemplate`(`DataTemplate`)&mdash;Defines the template that presents the indicator that is displayed between two columns during reordering.

controls/treedatagrid/columns/resizing.md

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,35 @@ slug: treedatagrid-column-resizing
88

99
# .NET MAUI TreeDataGrid Column Resizing
1010

11-
Columns inside the [Telerik UI for .NET MAUI TreeDataGrid]({%slug treedatagrid-overview%}) are resizable by default. The feature is available only on Desktop - `WinUI` and `MacCatalyst`.
11+
Columns inside the [Telerik UI for .NET MAUI TreeDataGrid]({%slug treedatagrid-overview%}) are resizable by default. The feature is available only on Desktop&mdash;WinUI and MacCatalyst.
1212

13-
On `WinUI` and `MacOS`, you can change the column width by positioning the mouse over the column's vertical grid line (in the column header) and dragging it until the desired size is achieved.
13+
On WinUI and MacOS, you can change the column width by positioning the mouse over the column's vertical grid line (in the column header) and dragging it until the desired size is achieved.
1414

15-
To resize a column programmatically, you can use the columns `Width` property. For more details review the [Columns Width]({%slug treedatagrid-columns-width%}) article.
15+
To resize a column programmatically, use the column's `Width` property. For more details, review the [Columns Width]({%slug treedatagrid-columns-width%}) article.
1616

1717
In addition, you can set a `MinimumWidth`(`double`) to the column. This property is applicable when setting `SizeMode` column property to `Fixed`. When `MinimumWidth` is set, you can not reduce the width of the column to a value lower than the `MinimumWidth`.
1818

1919
## Disabling Resizing
2020

21-
Two ways to disable the resizing.
21+
You can disable resizing in two ways.
2222

23-
**1.** Disable the resizing on a TreeDataGrid level.
23+
* Disable the resizing on a TreeDataGrid level&mdash;You can disable the resizing by setting the `CanUserResizeColumns` property to `False`. The default value is `True`.
2424

25-
You can disable the resizing by setting the `CanUserResizeColumns` property to `False`. The default value is `True`.
25+
```XAML
26+
<telerik:RadTreeDataGrid x:Name="grid"
27+
CanUserResizeColumns="False"/>
28+
```
2629

27-
```XAML
28-
<telerik:RadTreeDataGrid x:Name="grid"
29-
CanUserResizeColumns="False"/>
30-
```
30+
>note When disabling the resizing on a DataGrid level, none of the grid columns will be resizable.
3131
32-
>note When disabling the resizing on a DataGrid level, all the columns won't be resizable.
3332

34-
**2.** Disable the resizing on a column level.
33+
* Disable the resizing on a column level&mdash;To disable the resizing on a specific column, set the `IsResizable` property. The default value is `True`.
3534

36-
To disable the resizing on a specific column, set the `IsResizable` property. The default value is `True`.
37-
38-
```XAML
39-
<telerik:DataGridNumericalColumn PropertyName="StadiumCapacity"
40-
HeaderText="Stadium Capacity"
41-
IsResizable="False"/>
42-
```
35+
```XAML
36+
<telerik:DataGridNumericalColumn PropertyName="StadiumCapacity"
37+
HeaderText="Stadium Capacity"
38+
IsResizable="False"/>
39+
```
4340

4441
## Events
4542

controls/treedatagrid/columns/width.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ slug: treedatagrid-columns-width
1111
This article describes how to set a width to the [.NET MAUI TreeDataGrid]({%slug treedatagrid-overview%}) column using the `SizeMode` and `Width` properties.
1212

1313
* `SizeMode`(`DataGridColumnSizeMode`)&mdash;Defines the `DataGridColumnSizeMode` value that controls how the column and its associated cells are sized horizontally.
14-
* `Fixed`&mdash;The column has a fixed width as defined by its Width property.
14+
* `Fixed`&mdash;The column has a fixed width as defined by its `Width` property.
1515
* `Stretch`&mdash;The column is stretched to the available width proportionally to its desired width.
1616
* `Auto`&mdash;The columns is sized to its desired width. That is the maximum desired width of all associated cells.
17-
* `Width`(`double`)&mdash;Specifies the fixed width for the column. Applicable when the `SizeMode` property is set to `DataGridColumnSizeMode`.Fixed.
17+
* `Width`(`double`)&mdash;Specifies the fixed width for the column. Applicable when the `SizeMode` property is set to `DataGridColumnSizeMode.Fixed`.
1818
* `MinimumWidth`(`double`)&mdash;Specifies the minimum width of a column. This property is applicable when setting `SizeMode` column property to `Fixed`. When `MinimumWidth` is set, you can not reduce the width of the column to a value lower than the `MinimumWidth`.
1919
* `ActualWidth` (double): Gets the actual width of the column.
2020

controls/treedatagrid/filtering/filter-control-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The [Telerik UI for .NET MAUI TreeDataGrid]({%slug datagrid-overview%}) inherits
1212

1313
To customize the built-in Filtering UI for a concrete column, use the `FilterControlTemplate` property of the typed columns (text, boolean, numeric, date, time, and picker columns).
1414

15-
In addition, as the [template column]({%slug treedatagrid-columns-template-column%}) does not provide a default Filtering UI, with the `FilterControlTemplate` property you can allow users to filter data in template columns as well.
15+
As the [template column]({%slug treedatagrid-columns-template-column%}) does not provide a default Filtering UI, to allow users to filter data in template columns, use the `FilterControlTemplate` property.
1616

1717
* `FilterControlTemplate`(`DataTemplate`)&mdash;Specifies the user defined template used for Filtering UI. The template must contain an instance of the `Telerik.Maui.Controls.DataGrid.DataGridFilterControlBase` class.
1818

0 commit comments

Comments
 (0)