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

How to bind to self-referencing remote data

1 Answer 88 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 22 Mar 2013, 11:22 AM
Dear support & forum,

I'm trying to implement a very simple TreeView on my page that is bound to remote data. The underlying table Groups consists of these fields: Id, ParentId and Name. Using this structure, you can create hierarchies of groups.

Could you please provide working controller and client (razor) code that fetches the data and displays the names of the groups in a nested tree? I didn't manage to get along with your sample code as it doesn't show the whole story: database table, view model, controller and client code.

Thank you very much in advance for helping me with this for clarification!

Best regards,
Rob

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 22 Mar 2013, 01:10 PM
Hello Rob,

The binding to remote data example in the ASP.NET MVC wrappers' distribution shows how to bind the treeview to the database. If you need help related to your scenario, send a sample solution that shows the scenario and the specific problem that you need help with.

Greetings,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TreeView
Asked by
Robert
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or