I'am having a little issue when passing parameters to methode .Action() in MenuBuilderItem,
except the first , they are null when they passed to my Controller's methode.
Here a sample of my code :
View :
<%
MenuBuilder Menu = Html.Telerik().Menu();
Menu
.Name(
"Menu")
.Orientation(
MenuOrientation.Horizontal)
.HighlightPath(
false)
.Items(menu =>
{
menu.Add()
.Text(
"Proprits")
.Selected(((
PubSelectedTab)ViewData[Keys.PubSelectedTab]) == PubSelectedTab.properties);
menu.Add()
.Text(
"Primtre")
.Selected(((
PubSelectedTab)ViewData[Keys.PubSelectedTab]) == PubSelectedTab.Perimeter);
menu.Add()
.Text(
"Tags et actions")
.Selected(((
PubSelectedTab)ViewData[Keys.PubSelectedTab]) == PubSelectedTab.ActionsAndTags)
.Action(
"DisplayTabContent", "Publisher", new { publisherId = 4, tabIndex = 5 });
menu.Add()
.Text(
"Audience")
.Selected(((
PubSelectedTab)ViewData[Keys.PubSelectedTab]) == PubSelectedTab.Audition);
})
.Render();
%>
Controller Methode :
public ActionResult DisplayTabContent(int? publisherId, int? tabIndex)
{
//TODO
return View();
}
tabIndex is always null ?
Would Appreciate any help
Thanks