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

Implement Model Driven Menu Using Partial Views

1 Answer 49 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Alex Tushinsky
Top achievements
Rank 2
Alex Tushinsky asked on 01 May 2014, 04:57 PM
Hello,

I'm a bit new to the MVC pattern and the Telerik ASP.NET MVC controls.  I've been working with ASP.NET Ajax for years now, but not the MVC stuff.  I finally had the opportunity to work on something MVC based, and find myself stuck already.  

I have a hierarchical menu driven by a stored procedure.  The procedure basically removes / disables items that a user doesn't have rights to based on a role and other information that's passed into the proc.  I'd like to implement its use in a partial view, but cant' for the life of me figure this out.  This may be more of a MVC question than a Menu specific question, but anyone can point me at an example that would be awesome.  

I've tried the sample applications generated by the Telerik template, but that uses a static menu in the _Layout file.  Not exactly what I want.

Thank you for your help!

Alex T.

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 05 May 2014, 08:15 AM
Hello Alex,

See the binding menu to hierarchical model help topic. The BindTo method allows you to bind the items to a strongly-typed collection.

Regards,
Alex Gyoshev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Menu
Asked by
Alex Tushinsky
Top achievements
Rank 2
Answers by
Alex Gyoshev
Telerik team
Share this question
or