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

Dbound RadMenu ..Menu Hdr goes to HTTP 403 pg not found

1 Answer 41 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Neal
Top achievements
Rank 1
Neal asked on 27 Nov 2009, 10:17 AM
Hi all

I have a dbound Menu (vers 2009.1).

When i click on the menu headers, i get the ie HTTP 403 error  (permissions).

The header items in the db table typically show the apps path only in the IE browsers bottom bar, where as the menu items (working fine) show the path to the Required page in the app
See attached jpg screen shots with relevant items circled in red.

i.e.  The data, to be bound to the menu would be  e.g.
  •  for the header items :

                Screen = "~/",   Parent screen = null,  ...., title="Planning" , descrip="blah blah"   screenId=149

  • for the menu items would be  e.g.
.
               Screen =  "~/WebForms/Planning/DrmPlan.aspx"  ,   parent screen = 149,   title = "Plan"   descrip ="xxxxx" ,screen id=128


How do I resolve this. i.e. if the user clicks on the menu headers, how do i ensure that the path of the menu header or it's attempt to navigate to the Apps root are denied.

The App and the menu runs in a master page.

TIA
Neal

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 30 Nov 2009, 01:45 PM
Hello Neal,

If I understand correctly, you don't want the header items to navigate at all. You can handle the ItemDataBound event to set the NavigateUrl property of these items to "#":

protected void RadMenu1_ItemDataBound(object sender, RadMenuEventArgs e)
{
    if (e.Item.Level == 0)
        e.Item.NavigateUrl = "#";
}

I hope this helps.

Greetings,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Menu
Asked by
Neal
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or