Newbie layout questions

2 posts, 0 answers
  1. Randy Hompesch
    Randy Hompesch avatar
    85 posts
    Member since:
    Nov 2008

    Posted 19 Jun 2013 Link to this post

    Hi,
    I am trying to use a treeview in a layout page.
    I am going to load the tv from a database call (LINQ).
    Since there is no controller for the layout page, how to correctly get the data to the tv?
    I would hate to have to put code in every controller just to load this tv.
    There must be a recommended way to do this.
    Can some kind soul point me in the right direction?
    Thanks ... Ed

  2. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 21 Jun 2013 Link to this post

    Hello Randy,

    Please notice that your question is not directly related to the KendoTreeView, but to general MVC knowledge. 

    I would suggest you to check different resources over the internet and see different solutions to this particular scenario.

    http://www.asp.net/mvc/tutorials/older-versions/views/passing-data-to-view-master-pages-cs


    Kind Regards,
    Petur Subev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top