New to Telerik UI for Blazor? Download Free 30-day trial
TreeList - Auto-Generated Columns
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
Employee Id | Name | Age In Years | Graduate Grade | HireDate |
---|
0 | Employee 0 | 20 | 3 | 4/8/2023 12:00:00 AM | |
24 | Employee 24 | 17 | 3 | 4/4/2023 12:00:00 AM | |
27 | Employee 27 | 43 | 6 | 3/23/2023 12:00:00 AM | |
33 | Employee 33 | 21 | 4 | 3/26/2023 12:00:00 AM | |
53 | Employee 53 | 66 | 4 | 4/9/2023 12:00:00 AM | |
57 | Employee 57 | 52 | 4 | 3/31/2023 12:00:00 AM | |
64 | Employee 64 | 55 | 3 | 3/9/2023 12:00:00 AM | |
65 | Employee 65 | 58 | 4 | 3/11/2023 12:00:00 AM | |
92 | Employee 92 | 51 | 3 | 4/12/2023 12:00:00 AM | |
93 | Employee 93 | 42 | 4 | 4/14/2023 12:00:00 AM |
- Column-auto-generation.razor
Loading the demo source code...please wait.
Description
The Telerik Blazor TreeList can generate the columns from your model field - all you need to do is set its
AutoGenerateColumns
Parameter to true
. You can even update, delete and insert records without extra overhead. This demo also shows how to customize the behavior of the column generation feature.
This TreeList Auto-Generated Columns example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.