Skip to content

Commit 72f7540

Browse files
docs(treeview): warning about mixing flat properties with hierarchical data
1 parent 408ad73 commit 72f7540

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/treeview/data-binding/overview.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ Each `TreeViewBinding` tag exposes the following properties that refer to item p
5858

5959
>tip There are default values for the field names. If your model names match the defaults, you don't have to define them in the bindings settings.
6060
61+
>important If you are using hierarchical data binding, your model must not contain a field called `ParentId` (or a field that matches the name given to the `ParentIdField` parameter of a `TreeViewBinding`). That would confuse the treeview that it is binding to flat data, and so there may be no roots and you may see no data.
62+
6163
>caption Default field names for treeview item bindings. If you use these, you don't have to specify them in the `TreeViewBinding` tag explicitly.
6264
6365
````CSHTML

0 commit comments

Comments
 (0)