Sep 05, 2013, 9:39 AM
[CLOSED] [#342] [MVC] Accordion Render
Hi guys,
I have an accordion panel with 2 panel.
a panel with one button and an empty panel hidden.
If, when i click on this button and second panel just show, i expand my second panel, there is no problem.
If, when i click on this button and second panel just show, i click twice on button for hide then show second panel, the second panel expand is only half of the accordion (i join the screen for this)
TestView
Regards
I have an accordion panel with 2 panel.
a panel with one button and an empty panel hidden.
If, when i click on this button and second panel just show, i expand my second panel, there is no problem.
If, when i click on this button and second panel just show, i click twice on button for hide then show second panel, the second panel expand is only half of the accordion (i join the screen for this)
TestView
@using Ext.Net;
@using Ext.Net.MVC;
@Html.X().ResourceManager(ViewBag.ManagerConfig as MvcResourceManagerConfig)
<script type="text/javascript">
var testShowPanel = function () {
if (Ext.getCmp('PanelSite').hidden) Ext.getCmp('PanelSite').show();
else Ext.getCmp('PanelSite').hide();
}
</script>
@(
Html.X().Viewport()
.Layout(LayoutType.Fit)
.Items(
Html.X().Panel()
.ID("AccordionPanel")
.Layout(LayoutType.Accordion)
.ButtonAlign(Alignment.Center)
.Items(
Html.X().Panel()
.Items(
Html.X().Button()
.ID("PanelSelection")
.Text("test")
.Listeners(p =>
{
p.Click.Fn = "testShowPanel";
})
)
,
Html.X().Panel()
.ID("PanelSite")
.Title("SiteTitle"))
.Layout(LayoutType.Fit)
.Hidden(true)
)
.Buttons(
Html.X().Button()
.ID("ButStartConfig")
.Text("Lancer")
.Hidden(true)
)
)
)
Regards
Last edited by Tactem; Sep 06, 2013 at 9:08 AM.