[CLOSED] Error on title area click of menu

  1. #1

    [CLOSED] Error on title area click of menu

    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

    Attached Thumbnails Click image for larger version. 

Name:	ext.net menu error.png 
Views:	27 
Size:	28.7 KB 
ID:	11801  
    Last edited by Daniil; Jun 04, 2014 at 6:21 AM. Reason: [CLOSED]
  2. #2
    Hi @PriceRightHTML5team,

    We reproduced that and are investigating.
  3. #3
    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.
  4. #4
    Thanks Daniil, it is working fine now.

Similar Threads

  1. Replies: 4
    Last Post: Mar 04, 2014, 2:20 PM
  2. [CLOSED] Custom close button and title area size for the window
    By livehealthierGF in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: May 06, 2013, 11:28 PM
  3. [CLOSED] Command @ Grid Panel Title Area
    By bayoglu in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Feb 27, 2013, 1:49 AM
  4. Replies: 7
    Last Post: Nov 13, 2011, 4:43 PM
  5. Replies: 2
    Last Post: May 13, 2011, 4:02 PM

Tags for this Thread

Posting Permissions