Oct 27, 2011, 7:03 PM
[HARD] Multiple UserControls inside FormPanel + isValid + Dinamically loading
Hello, good afternoon..
I'm facing a fancy issue...
I'm trying use multiple UserControl's inside and Ext.FormPanel. The problem is when I try validate the inner controls.
To validate an user control I need the following tags inside UC1.ascx:
And the form panel...
System.Exception: Only one layout is possible in the container (ID = 'FormPanelSolicitacao')
How can I workaround this?
Is this a bug?
Thanks for any reply!
Regards
I'm facing a fancy issue...
I'm trying use multiple UserControl's inside and Ext.FormPanel. The problem is when I try validate the inner controls.
To validate an user control I need the following tags inside UC1.ascx:
<ext:ContainerLayout runat="server" ID="teste">
<Items>
......CONTROLS.....
</Items>
</ext:ContainerLayout>
And the form panel...
<ext:FormPanel ID="FormPanelSolicitacao" runat="server" Title="Nova Solicitação"
Icon="Application" Width="760" Frame="true" IsFormField="true">
<Items>
<ext:ContainerLayout runat="server" ID="teste">
<Content>
<uc1:ROTASNovaSolContratoConvenio ID="ROTASNovaSolContratoConvenio1" runat="server" />
<uc2:ROTASNovaSolInfoGestor ID="ROTASNovaSolInfoGestor1" runat="server" />
</Content>
</ext:ContainerLayout>
</Items>
<Buttons>
<ext:Button ID="btnNovaSolicitacao" runat="server" Text="Salvar">
<DirectEvents>
<Click OnEvent="btnNovaSolicitacao_DirectClick" Before="var valid= #{FormPanelSolicitacao}.getForm().isValid();">
<EventMask ShowMask="true" MinDelay="1000" Target="CustomTarget" CustomTarget="={#{FormPanelSolicitacao}.getEl()}" />
<ExtraParams>
<ext:Parameter Value="#{FormPanelSolicitacao}.getForm().isValid()" Mode="Raw" Name="PanelSolicitacao">
</ext:Parameter>
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>
</Buttons>
</ext:FormPanel>
But... if I try use 2 user controls inside the FormPanel....System.Exception: Only one layout is possible in the container (ID = 'FormPanelSolicitacao')
How can I workaround this?
Is this a bug?
Thanks for any reply!
Regards