Jun 15, 2012, 12:35 PM
Validation on FormPanel with a Container
Hello,
I have a FormPanel with some reqired TextField items and an Ext:Container element with an asp UserControl. The UserControl has an Ext:Panel with some other required Ext:TextField controls.
If I call isValid() on the form, fields into the UserControl are ignored tough they are marked as invalid on the UI .
Here what's in the UserControl
Wat's wrong?
It's possible to include the fields in the UserControl in the validation process?
I have a FormPanel with some reqired TextField items and an Ext:Container element with an asp UserControl. The UserControl has an Ext:Panel with some other required Ext:TextField controls.
If I call isValid() on the form, fields into the UserControl are ignored tough they are marked as invalid on the UI .
Here what's in the UserControl
<ext:FormPanel ID="Form1" runat="server" Title="New record"
AutoHeight="true" MonitorValid="true" Padding="5" ButtonAlign="Right"
Layout="FormLayout">
<Items>
<ext:NumberField ID="NewId" runat="server" FieldLabel="New Id" Width="240"
AllowBlank="true" MinValue="1" MaxValue="999999999" />
<ext:Container ID="Container12" runat="server">
<Content>
<ctrl:AddressPanel ID="NewAddress" runat="server">
</ctrl:AddressPanel>
</Content>
</ext:Container>
...
And here's the UserControl content <ext:Panel ID="AddressPanel" runat="server" Title="Address" Padding="5" Layout="FormLayout"
AutoScroll="true">
<Items>
<ext:ComboBox ID="Region" runat="server" TriggerAction="All" ValueField="Value"
DisplayField="Text" FieldLabel="Region" Width="250" AllowBlank="false">
Wat's wrong?
It's possible to include the fields in the UserControl in the validation process?
Last edited by lcestola; Jun 15, 2012 at 12:42 PM.
Reason: Better explaination