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 | 63 | 3 | 7/20/2022 12:00:00 AM | |
15 | Employee 15 | 23 | 6 | 8/25/2022 12:00:00 AM | |
22 | Employee 22 | 23 | 5 | 7/28/2022 12:00:00 AM | |
26 | Employee 26 | 14 | 5 | 8/15/2022 12:00:00 AM | |
35 | Employee 35 | 36 | 6 | 8/8/2022 12:00:00 AM | |
55 | Employee 55 | 64 | 6 | 8/17/2022 12:00:00 AM | |
57 | Employee 57 | 12 | 4 | 8/15/2022 12:00:00 AM | |
72 | Employee 72 | 70 | 3 | 8/3/2022 12:00:00 AM | |
79 | Employee 79 | 13 | 6 | 8/26/2022 12:00:00 AM | |
81 | Employee 81 | 40 | 4 | 7/27/2022 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 Blazor TreeList - Auto-Generated Columns demo is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik Blazor components and their features in action. View the source code of each of the demos or directly adapt and edit them, including their theme appearance, in some of our dedicated playgrounds for Blazor projects - Telerik REPL for Blazor.