treeview structure dynamically from database

2 posts, 0 answers
  1. saroj
    saroj avatar
    39 posts
    Member since:
    Oct 2011

    Posted 26 Jul 2012 Link to this post

    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.



  2. Alex Gyoshev
    Alex Gyoshev avatar
    2515 posts

    Posted 26 Jul 2012 Link to this post

    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.

    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!
Back to Top