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.

Menu not working

Thread ID:





131530 Jul 14,2017 12:59 PM Jul 31,2017 01:10 AM ASP.NET Web Forms 5
Tags: Menu
Hafizullah Mahmudi
Asked On July 14, 2017 12:59 PM

Dear Sir;

I created a menu like following and added the css.

        <div class="frame">

           <ej:Menu ID="SyncfusionProducts" runat="server" Width="615px">

                <ej:MenuItem Id="Products" Text="Products">


                <ej:MenuItem Id="Support" Text="Support">


                <ej:MenuItem Id="Purchase" Text="Purchase">


                <ej:MenuItem Id="Downloads" Text="Downloads">


                <ej:MenuItem Id="Resources" Text="Resources">


                <ej:MenuItem Id="Company" Text="Company">





but when i run it shows like a bulleted list

Prince Oliver [Syncfusion]
Replied On July 17, 2017 02:18 AM

Hi Hafizullah,   
Thank you for contacting Syncfusion Support.   
We have checked the provided code, we were unable to reproduce the issue with that. For your reference, we have prepared a sample, kindly refer to the following link for the sample: http://www.syncfusion.com/downloads/support/forum/131530/ze/MenuSample-1637851567 

We suggest you to ensure whether you have referred the dependent scripts and themes in the layout page. Kindly refer to the following code snippet.  

<%:Styles.Render("~/Content/bootstrap.min.css") %> 
     <%:Styles.Render("~/Content/Site.css") %> 
     <%:Styles.Render("~/Content/ej/web/default-theme/ej.web.all.min.css") %> 
     <!--[if lt IE 9]> 
    <%: Scripts.Render("~/Scripts/jquery-1.11.3.min.js")%> 
    <!--[if gte IE 9]><!--> 
    <%: Scripts.Render("~/Scripts/jquery-3.1.1.min.js")%> 
    <%: Scripts.Render("~/Scripts/pivotgrid.datasource.js")%> 
    <%: Scripts.Render("~/Scripts/jsrender.min.js")%> 
    <%: Scripts.Render("~/Scripts/ej/ej.web.all.min.js")%> 
    <%: Scripts.Render("~/Scripts/ej/ej.webform.min.js")%> 
    <%: Scripts.Render("~/Scripts/jsondatachart.js")%> 
    <%: Scripts.Render("~/Scripts/sampleslist.js")%> 
    <%: Scripts.Render("~/Scripts/properties.js")%> 

Also, ensure whether the ScriptManager is added in SiteMaster page. 

<form runat="server"> 
        <asp:ScriptManager runat="server"> 
    . . . . . . . . . . . . . . . . . . . . . . .  


Hafizullah Mahmudi
Replied On July 21, 2017 12:10 PM


Is there a way to hide a menu item programmatic ally. For example, I would like to show/hide some menu items based on users role.

Secondly, how can I change the color or dropdown icon. see following screen. 

Prince Oliver [Syncfusion]
Replied On July 24, 2017 07:27 AM

Hi Hafizullah, 

Thank you for your update. 

Query 1: Is there a way to hide a menu item programmatic ally 

Response: You can disable menu item programmatically using the HtmlAttributes property. you need to provide Id attribute for every menu item you need to hide. Kindly refer to the following code snippet. 

 . . . . . .  
    <ej:MenuItem Id="Home" Text="Home"></ej:MenuItem> 
    . . . . . . .  

Now you can access the menu item using the Id attribute in the code behind and you can set HtmlAttributes property for the menu item as “class=e-hidden-item”. This will hide the menu item. Kindly refer to the following code snippet. 

Home.HtmlAttributes = "class=e-hidden-item"; 

Query 2: how can I change the color or dropdown icon. 

Response: To change the color of the dropdownlist icon, you need to override the existing color. Kindly refer to the following code snippet. 

    .e-menu .e-list>a .e-icon, .e-menu .e-list>span>.e-icon { 
        color: #f00; 

We have prepared a sample for your reference, kindly find the sample from the following link: http://www.syncfusion.com/downloads/support/forum/131530/ze/MenuAspSample-615987181 


Hafizullah Mahmudi
Replied On July 29, 2017 10:52 AM

Thanks it works great now.I need another help in applying sitemap using Syncfusion. Is there a way to implement a asp.net webform like sitemap navigation style.

Prince Oliver [Syncfusion]
Replied On July 31, 2017 01:10 AM

Hi Hafizullah, 

Most welcome. 

We have already considered Site Map control as feature request at our end and it will be available in any of the upcoming release. 



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.