[OPEN] [#39] [2.0] GridPanel in Accordion

Page 1 of 2 12 LastLast
  1. #1

    [OPEN] [#39] [2.0] GridPanel in Accordion

    Hello,

    The following example demonstrates a layout issue with a GridPanel inside of an Accordion control:

    @model Suite.Entity.Customer
    @{
        ViewBag.Title = "Word";
        Layout = "~/Areas/Management/Views/Shared/Layout.cshtml";
    }
    
    
    @(Html.X().Viewport()
        .Border(false)
        .Layout(LayoutType.Fit)
        .Items(a =>
        {
            a.Add(Html.X().Panel()
                .Layout(LayoutType.Accordion)
                .Items(b =>
                {
                    b.Add(Html.X().Panel()
                        .Title("Accordion 1")
                    );
    
    
                    b.Add(Html.X().Panel()
                        .BodyPadding(15)
                        .Title("Accordion  2")
                        .Items(c =>
                        {
                            c.Add(Html.X().GridPanel()
                                .Height(255)
                                .ColumnModel(columns =>
                                {
                                    columns.Add(Html.X().Column()
                                        .Flex(1)
                                        .Text("Column 1")
                                    );
                                } )
                            );
                        } )
                    );
                } )
            );
        } )
    )
    If you run the same example, without the accordion, the GridPanel lays out correctly:

    @model Suite.Entity.Customer
    @{
        ViewBag.Title = "Word";
        Layout = "~/Areas/Management/Views/Shared/Layout.cshtml";
    }
    
    
    @(Html.X().Viewport()
        .Border(false)
        .Layout(LayoutType.Fit)
        .Items(a =>
        {
            a.Add(Html.X().Panel()
                .BodyPadding(15)
                .Title("Accordion  2")
                .Items(c =>
                {
                    c.Add(Html.X().GridPanel()
                        .Height(255)
                        .ColumnModel(columns =>
                        {
                            columns.Add(Html.X().Column()
                                .Flex(1)
                                .Text("Column 1")
                            );
                        } )
                    );
                } )
            );
        } )
    )
    Using Gray theme FF/IE/Chrome

    Cheers,
    Timothy
    Last edited by Baidaly; Nov 17, 2012 at 12:45 AM. Reason: Issue created
  2. #2
    Hi,

    Do you mean the horizontal scrollbar?

    It looks a bug, I have reported it to Sencha.
    http://www.sencha.com/forum/showthread.php?227137

    Lets wait what they will answer.
  3. #3
    Sencha has opened a bug ticket. I will monitor.

    Do you need a workaround for now? We are unable to find yet.
  4. #4
    Quote Originally Posted by Daniil View Post
    Sencha has opened a bug ticket. I will monitor.

    Do you need a workaround for now? We are unable to find yet.
    Hello Daniil,

    It looks like it's more than just the scroll bar, I don't think the actual column and rows are laying out either. I've bound some data to the grid and it's not showing. I'm going to try wrapping the GridPanel in an additional Panel within the Accordion to see if that works this morning.

    Thanks for opening the ticket, let me know. Also, if it gets resolved by Sencha I'll need to know which branch it's applied to; 2.0 or 2.1.

    Cheers,
    Timothy
  5. #5
    Adding an additional Panel around the GridPanel does not make a difference.

    Cheers,
    Timothy
  6. #6
    Quote Originally Posted by Timothy View Post
    if it gets resolved by Sencha I'll need to know which branch it's applied to; 2.0 or 2.1.
    Yes, I will let you know.
  7. #7
    Any updates?

    Cheers
  8. #8
    Hi Timothy,

    We are planing to update ExtJS to 4.1.1 in Ext.NET v2.1. So, if it will be fixed in ExtJS 4.1.1, the fix will be included in Ext.NET v2.1. If not, in some further releases, depends on Sencha.
  9. #9

    try add width 100% on view panel

    this work for me fine
    <View>
    <ext:GridView style="width:100%"/>
    </View>
    Last edited by Daniil; Sep 24, 2012 at 6:51 PM. Reason: Please use [CODE] tags
  10. #10
    Hi @maxoptimus,

    Thank you for sharing!

    I am surprised that it is not fixed by Sencha yet.
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Accordion + GridPanel + hidden ScrollBars
    By asztern in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 09, 2011, 5:12 PM
  2. Replies: 5
    Last Post: Nov 11, 2010, 7:33 PM
  3. [CLOSED] Accordion + GridPanel
    By Zarzand in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Apr 02, 2009, 8:15 PM
  4. Bug in accordion or treepanel
    By plykkegaard in forum 1.x Help
    Replies: 0
    Last Post: Feb 22, 2009, 5:24 AM
  5. Stateful accordion
    By Rod in forum 1.x Help
    Replies: 3
    Last Post: Nov 24, 2008, 10:46 AM

Posting Permissions