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 | 52 | 3 | 4/28/2024 12:00:00 AM | |
9 | Employee 9 | 40 | 4 | 4/25/2024 12:00:00 AM | |
11 | Employee 11 | 37 | 6 | 4/24/2024 12:00:00 AM | |
13 | Employee 13 | 34 | 4 | 5/13/2024 12:00:00 AM | |
14 | Employee 14 | 70 | 5 | 5/10/2024 12:00:00 AM | |
16 | Employee 16 | 56 | 3 | 4/6/2024 12:00:00 AM | |
20 | Employee 20 | 58 | 3 | 5/6/2024 12:00:00 AM | |
21 | Employee 21 | 58 | 4 | 4/10/2024 12:00:00 AM | |
25 | Employee 25 | 26 | 4 | 5/6/2024 12:00:00 AM | |
30 | Employee 30 | 68 | 5 | 4/25/2024 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.