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

Disable menu item based on the Active directory login

2 Answers 109 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Syed
Top achievements
Rank 1
Syed asked on 09 Jan 2014, 01:52 AM

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" />

</telerik:RadMenu>

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

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

    SelectCommand="PRS_GetWebSiteSiteMap" SelectCommandType="StoredProcedure">

</asp:SqlDataSource>

 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

Thanks

Syed

2 Answers, 1 is accepted

Sort by
0
Syed
Top achievements
Rank 1
answered on 13 Jan 2014, 01:52 AM

Hi There

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

Thanks

Syed

0
Kate
Telerik team
answered on 13 Jan 2014, 12:59 PM
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.

Regards,
Kate
Telerik
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.
Tags
Menu
Asked by
Syed
Top achievements
Rank 1
Answers by
Syed
Top achievements
Rank 1
Kate
Telerik team
Share this question
or