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

[Solved] Why is menu item disabled when action set?

2 Answers 116 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Terry Burns-Dyson
Top achievements
Rank 1
Terry Burns-Dyson asked on 13 Oct 2010, 12:02 PM
I have a menu that contains 2 items when the user is not logged in. Login and Register.  The login entry I've tied to a Javascript even and that works, that when I click that my event fires. My second entry, Register, is shown as disabled.


item.Add().Text("Login").HtmlAttributes(new { @id = "LoginButton" });
item.Add().Text("Register").Action("Register", "Account");
I've verfied that the controller and action both exist. I've also added in another menu, sub-items where I know the controller does not exist and that is still clickable and will take me to a 404. 

What am I doing wrong?

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 13 Oct 2010, 01:55 PM
Hi Terry Burns-Dyson,

 We are not sure what may be causing this problem. Could you please send us a sample project? Just attach it to this forum thread.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Terry Burns-Dyson
Top achievements
Rank 1
answered on 14 Oct 2010, 12:20 PM
Ok, now I feel foolish, I thought I had tried this. 

OpenOnClick.

I like the having to click a menu to drop it out, so I was working with this. This doesn't allow a top level menu to navigate. Disabling that means it works.Although it still shows as disabled, yet my sample project doesn't. 

Thank-you for taking the time. 
Tags
Menu
Asked by
Terry Burns-Dyson
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Terry Burns-Dyson
Top achievements
Rank 1
Share this question
or