[CLOSED] Panel with CollapseDirection left not expands on title area click

  1. #1

    [CLOSED] Panel with CollapseDirection left not expands on title area click

    Hi,

    Following is my markup

    @{
        ViewBag.Title = "Index";
        Layout = "~/Views/Shared/_Layout.cshtml";
    }
     
    <h2>Index</h2>
    
     
    @Html.X().ResourceManager().CleanResourceUrl(false)
     
    @(
     Html.X().Panel() 
    .Collapsible(true)
    .TitleCollapse(true)
    .Height(400)
    .Width(300)
    .Title("Main")
    .CollapseDirection(Direction.Left)
    .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().Menu()
                    .Floating(false)
                     .Collapsible(true)
                    .TitleCollapse(true)
                    .Title("Numbers")
                    .CollapseDirection(Direction.Top)
                    .Collapsed(true)
                     //.Menu(menu =>
                     //           {
                     .Items(
                                    //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
        )
    )

    The issue i am facing is the outer most panel "Main" has CollapseDirection(Direction.Left). It does not expand on title area click. Though, it expands on click of the expand ">>" icon.
    Last edited by Daniil; Jun 10, 2014 at 5:19 AM. Reason: [CLOSED]
  2. #2
    Hi @PriceRightHTML5team,

    As a solution I can suggest to add this for the Panel.
    .Listeners(events => 
        {
            events.Collapse.Handler = "this.mon(this.getReExpander(), 'click', this.toggleCollapse, this);";
            events.Collapse.Single = true;
        })

Similar Threads

  1. [CLOSED] Error on title area click of menu
    By PriceRightHTML5team in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 04, 2014, 6:19 AM
  2. [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
  3. Replies: 4
    Last Post: Sep 26, 2012, 2:28 PM
  4. [CLOSED] Expand panel when click on the title
    By RCN in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Jun 06, 2012, 12:11 PM
  5. Replies: 2
    Last Post: May 12, 2011, 9:26 AM

Tags for this Thread

Posting Permissions