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 | 16 | 3 | 11/16/2024 12:00:00 AM | |
11 | Employee 11 | 29 | 6 | 10/26/2024 12:00:00 AM | |
24 | Employee 24 | 63 | 3 | 10/14/2024 12:00:00 AM | |
26 | Employee 26 | 41 | 5 | 11/14/2024 12:00:00 AM | |
27 | Employee 27 | 31 | 6 | 10/16/2024 12:00:00 AM | |
31 | Employee 31 | 76 | 6 | 11/17/2024 12:00:00 AM | |
37 | Employee 37 | 12 | 4 | 11/18/2024 12:00:00 AM | |
42 | Employee 42 | 48 | 5 | 11/1/2024 12:00:00 AM | |
44 | Employee 44 | 53 | 3 | 11/8/2024 12:00:00 AM | |
60 | Employee 60 | 38 | 3 | 10/16/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 Blazor 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.