This is a migrated thread and some comments may be shown as answers.

How do I specify schema for TreeView HierarchicalDataSource using HtmlHelper?

0 Answers 65 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 20 Jul 2012, 06:01 PM
I want to specify model schema, for example to specify "children" property. How do I need to change following Razor code to specify that "children" are stored in "subentities" property?

    @(Html.Kendo().TreeView()
        .Name("treeview")
        .DataTextField("Name")
        .DataSource(dataSource => dataSource
            .Read(read => read
                .Action("Employees", "TreeView")
            )
        )
    )

Does TreeView support schema customization?

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Greg
Top achievements
Rank 1
Share this question
or