Jun 28, 2012, 1:26 AM
[OPEN] [#39] [2.0] GridPanel in Accordion
Hello,
The following example demonstrates a layout issue with a GridPanel inside of an Accordion control:
Cheers,
Timothy
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/ChromeCheers,
Timothy
Last edited by Baidaly; Nov 17, 2012 at 12:45 AM.
Reason: Issue created