Disable menu item based on the Active directory login

3 posts, 0 answers
  1. Syed
    Syed avatar
    36 posts
    Member since:
    Nov 2013

    Posted 08 Jan 2014 Link to this post

    I would like to disable my menu item based on the Active directory login.

    I am using SQL data source, My ASPX page and Menu control look like this

    <telerik:RadMenu ID="RadMenu1" Runat="server" DataFieldID="ID"

        DataFieldParentID="Parent" DataNavigateUrlField="Url"

        DataSourceID="SqlDataSource1" DataTextField="Title" Skin="Glow"

             EnableRoundedCorners="true" style="z-index: 100000; left: 0px; top: 52px; position: absolute">

            <DefaultGroupSettings ExpandDirection="Down" RepeatDirection="Horizontal" />


    <asp:SqlDataSource ID="SqlDataSource1" runat="server"

        ConnectionString="<%$ ConnectionStrings:PROJECT_STATUS %>"

        SelectCommand="PRS_GetWebSiteSiteMap" SelectCommandType="StoredProcedure">


     I have another table which tell me the user login ID and pageID he has access to. So What I want based on the User login I would like to enable the menu pages.

    So User Chris with domain\Chris only access to page 1,3,5. The menu control of page 1,3,5 are enabled and remaining all the of the menu control will be disabled.

    I hope someone will be able to help me out



  2. Syed
    Syed avatar
    36 posts
    Member since:
    Nov 2013

    Posted 12 Jan 2014 Link to this post

    Hi There

    I am still waiting for response and I am surprised that nobody has ever this requirement??



  3. DevCraft R3 2016 release webinar banner
  4. Kate
    Kate avatar
    1898 posts

    Posted 13 Jan 2014 Link to this post

    Hi Syed,

    Once you identify the user that is logged in the system you can easily find the RadMenu control and then disable the needed items from the RadMenu control. For example you can refer to this help article to get a better idea how to find the needed menu item on the server side.

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top