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

treeview structure dynamically from database

1 Answer 362 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
saroj
Top achievements
Rank 1
saroj asked on 26 Jul 2012, 05:38 AM
Hi Support,

I need to create a treeview structure dynamically
 
Let me describe my scenario: I have four tables - Country, City, State and Suburb.
City has Country_ID as foreign key.
State has City_ID as foreign key.
Suburb has State_ID as foreign key.

 When I pass the Country_ID I need to show all the Cities related under that Country, similarly state related under that city and suburb related under that state in a tree structure.

How can I create the model for this scenario and does Telerikcontrol support this scenario.

Thanks
Saroj

 

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 26 Jul 2012, 07:43 AM
Hello Saroj,

You can use the BindTo method to bind the treeview to a model. Its syntax is quite similar to the MVC extensions, which you asked about.

From your other post, I am assuming that you are evaluating the differences between Kendo UI and the MVC extensions? If so, consider reading the MVC FAQ about Kendo UI.

Regards,
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
saroj
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or