Skip to content

Commit a10ce54

Browse files
Add explanation on binding the TreeList to List of objects (#136)
* chore(treelist): add notes section and explain the list of object * chore(treelist): improve data binding note wording Co-authored-by: Marin Bratanov <[email protected]>
1 parent 171bd98 commit a10ce54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/treelist/data-binding/overview.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ For samples of using each data binding approach listed above, see its correspond
5151

5252
@[template](/_contentTemplates/treelist/databinding.md#data-binding-modes)
5353

54+
## Notes
55+
56+
* The TreeList is designed to work with a collection of strongly typed models (e.g., `IENumerable<SomeDataModel>`). If you provide an `IEnumerable<object>` instead, you must set the `FieldType` of the `<TreeListColumn>` instances to the data type of the fields they use (e.g., `<TreeListColumn Field=@nameof(Employee.Name) FieldType="@(typeof(string))" />`).
57+
5458

5559
## See Also
5660

0 commit comments

Comments
 (0)