We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

ASP.Net MVC 3 Menu Contol Not Rendering

Thread ID:

Created:

Updated:

Platform:

Replies:

101271 Oct 11,2011 05:37 PM Oct 13,2011 09:11 AM ASP.NET MVC (Classic) 4
loading
Tags: Tools
Gary Cryer
Asked On October 11, 2011 05:37 PM

I am attempting to create a menu using your asp.net mvc 3 razor controls. put for the following markup:

@using Syncfusion.Mvc.Tools
@using Syncfusion.Mvc.Shared
@using Syncfusion.Core




@ViewBag.Title


@(Html.Syncfusion().StyleManager().Register(styleSheet =>
{
styleSheet.Add(ComponentType.Menu);
}))




Banner






@Html.Syncfusion().Menu("menu")


@RenderBody()






I don't get the menu but instead I get the following div string:



What am I missing?



Varalakshmi R.S [Syncfusion]
Replied On October 12, 2011 03:25 AM

Hi Gary,

Thanks for contacting syncfusion forums.

We just you to use the below code snippet for rendering the Menu control in razor view,


[View]

@{Html.Syncfusion().Menu("syncmenu").Height(30).Render();}


We also suggest you to go through our online sample link to know more details regarding this,
http://mvc.syncfusion.com/sfmvcsamplebrowser/9.3.0.61/Tools_MVC/Samples/4.0/Razor/menu/mediacenter

Kindly get back to us if you have any concerns.

Regards,
Varalakshmi R.S




Gary Cryer
Replied On October 12, 2011 11:47 AM


So I have added the following to the view:



@{Html.Syncfusion().Menu("menu").Height(30).Render();}

the html has disappeared but I still do not see the Menu.



Gary Cryer
Replied On October 12, 2011 04:46 PM

I have attached a sample VS2010 project that shows my problem. This will give you a better look at what I am doing wrong. And who to fix it.



Mvc3RazorWithSyncFusion_944d9ccf.zip

Varalakshmi R.S [Syncfusion]
Replied On October 13, 2011 09:11 AM

Hi Gary,

Thanks for the update.

In the attached sample site.css link was commented. So we suggest you to un comment that line to get proper look.

Regards,
Varalakshmi R.S


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;