PDA

View Full Version : [CLOSED] Error on title area click of menu



PriceRightHTML5team
Jun 03, 2014, 3:28 PM
Mine is an asp.net mvc razor application.

I have an panel having child menupanel in them.

following is the markup of the test case



@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>

@Html.X().ResourceManager().CleanResourceUrl(false )

@(
Html.X().Panel()
.Collapsible(true)
.TitleCollapse(true)
.Title("Main")
.CollapseDirection(Direction.Top)
.Collapsed(false)
.Items(
Html.X().Panel()
.Items(
Html.X().MenuPanel()
.Collapsible(true)
.TitleCollapse(true)
.Title("Words")
.CollapseDirection(Direction.Top)
.Collapsed(true)
.Menu(menu =>
{
menu.Items.Add(Html.X().MenuItem().Text("one"));
menu.Items.Add(Html.X().MenuItem().Text("two"));
}
)
)//end 1st panel
,
Html.X().Panel()
.Items(
Html.X().MenuPanel()
.Collapsible(true)
.TitleCollapse(true)
.Title("Numbers")
.CollapseDirection(Direction.Top)
.Collapsed(true)
.Menu(menu =>
{
menu.Items.Add(Html.X().MenuPanel()
.Collapsible(true)
.TitleCollapse(true)
.Title("Numeric")
.CollapseDirection(Direction.Top)
.Collapsed(true)
.Menu(m =>
{
m.Items.Add(Html.X().MenuItem().Text("1"));
m.Items.Add(Html.X().MenuItem().Text("2"));
}
));
menu.Items.Add(Html.X().MenuPanel()
.Collapsible(true)
.TitleCollapse(true)
.Title("Roman")
.CollapseDirection(Direction.Top)
.Collapsed(true)
.Menu(r =>
{
r.Items.Add(Html.X().MenuItem().Text("I"));
r.Items.Add(Html.X().MenuItem().Text("II"));
}
));
}
)
)//end 2nd panel
)
)




I am getting following error on nested panel title area click

http://forums.ext.net/attachment.php?attachmentid=11801&stc=1

Daniil
Jun 03, 2014, 7:03 PM
Hi @PriceRightHTML5team,

We reproduced that and are investigating.

Daniil
Jun 04, 2014, 5:34 AM
I don't think that a MenuPanel is designed to consist something except MenuItems.

Please use

Html.X().Menu()
.Floating(false)
instead of parent MenuPanels.

PriceRightHTML5team
Jun 04, 2014, 7:19 AM
Thanks Daniil, it is working fine now.