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

menu not woking with action

0 Answers 64 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.
Don
Top achievements
Rank 1
Don asked on 04 Jul 2010, 10:05 PM
I have added a menu to the site.master file and without the action command everything works. As soon as I add the action command in ( or uncomment it ) the menu does not drop down, it just does not work. what am I doing wrong. Yes I have the ScriptRegistrar command in otherwise nothing will work. the program runs but the menu does not appear when selected.

<%

Html.Telerik().Menu()

.Name(

 

"Menu")

 

.Items(menu =>

{

menu.Add()

.Text(

 

"Company")

 

.Items(item =>

{

item.Add()

.Text(

 

"Home").Action("Index", "Home");

 

item.Add()

.Text(

 

"About").Action("About", "Home");

 

});

menu.Add()

.Text(

 

"Personal")

 

.Enabled(

 

true)

 

.Items(item =>

{

item.Add()

// .Action("Index", "Employee")

.Text(

 

"Employee1")

 

.Enabled(

 

true);

 

item.Add()

// .Action("Index", "Project")

.Text(

 

"Project1")

 

.Enabled(

 

true);

 

});

menu.Add()

.Text(

 

"Personal111")

 

.Enabled(

 

true)

 

.Items(item =>

{

item.Add()

// .Action("Index", "Employee")

.Text(

 

"Employee")

 

.Enabled(

 

true);

 

item.Add()

// .Action("Index", "Project")

.Text(

 

"Project")

 

.Enabled(

 

true);

 

});

 

})

.Render();

%>

Tags
Menu
Asked by
Don
Top achievements
Rank 1
Share this question
or