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

[Solved] How to bind menu into masterpage

1 Answer 127 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Phat Nguyen
Top achievements
Rank 1
Phat Nguyen asked on 30 Sep 2010, 02:58 AM
I'm a newbie about MVC & telerik control, who can help me bind (sitemap) menu MVC into masterpage. Thanks.

1 Answer, 1 is accepted

Sort by
0
Mac
Top achievements
Rank 1
answered on 28 Oct 2010, 10:22 AM
Hi Phat,

One approach may be to create a controller action, partial view and view model for your menu and then call that from the master page.

<% Html.RenderAction("Menu", "MasterPage"); %>

In the example above, MasterPage is a new Controller for anything that you might want to be able to control a bit better. And Menu is the action that will take care of gathering the data (from any source) and passing it to the View using the view model.

Tags
Menu
Asked by
Phat Nguyen
Top achievements
Rank 1
Answers by
Mac
Top achievements
Rank 1
Share this question
or