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

Newbie layout questions

1 Answer 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Randy Hompesch
Top achievements
Rank 1
Randy Hompesch asked on 19 Jun 2013, 02:59 PM
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

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 21 Jun 2013, 12:31 PM
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!
Tags
General Discussions
Asked by
Randy Hompesch
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or