Jun 10, 2010, 1:11 PM
FormPanel validation unexpected firing
Hello,
I'm trying to implement a page kind like this:
https://examples1.ext.net/#/GridPanel/Miscellaneous/Details_Window_Remote/
Please see attached image to visualize the problem.
I've added a "New" button, that must show the window inside the UserControl (the same way the "edit" button does).
<ext:ImageButton ID="btnNew" AlternateText="Save" runat="server" ImageUrl="../_images/icons/btn_new.png" CausesValidation="false">
<DirectEvents>
<Click OnEvent="ShowDetails">
<EventMask ShowMask="true" Target="CustomTarget" CustomTarget="={#{grdDado}.body}" />
<ExtraParams>
<ext:Parameter Name="pa_func" Value="I" />
</ExtraParams>
</Click>
</DirectEvents>
</ext:ImageButton>
The problem is that, when the Window is shown, the Validation on the FormPanel is fired and the red icons are showed! I want the validation to be performed only when user click on the "Save" button on the form.
Here is the FormPanel (piece of) Code:
<ext:FormPanel ID="FormPanel1" runat="server" Height="400" Padding="5" MonitorValid="false"
Border="False" LabelWidth="150">
<Defaults>
<ext:Parameter Name="MsgTarget" Value="side" />
</Defaults>
<Items>
<ext:TextField ID="tbx_cd_stor_cabi" runat="server" FieldLabel="Code" Disabled="true"
Width="100" AllowBlank="false" ValidationGroup="Details" />
</Items>
</ext:FormPanel>
I'm using Ext.Net [v1.0].
Any help would be appreciated.
Thank you!!!
I'm trying to implement a page kind like this:
https://examples1.ext.net/#/GridPanel/Miscellaneous/Details_Window_Remote/
Please see attached image to visualize the problem.
I've added a "New" button, that must show the window inside the UserControl (the same way the "edit" button does).
<ext:ImageButton ID="btnNew" AlternateText="Save" runat="server" ImageUrl="../_images/icons/btn_new.png" CausesValidation="false">
<DirectEvents>
<Click OnEvent="ShowDetails">
<EventMask ShowMask="true" Target="CustomTarget" CustomTarget="={#{grdDado}.body}" />
<ExtraParams>
<ext:Parameter Name="pa_func" Value="I" />
</ExtraParams>
</Click>
</DirectEvents>
</ext:ImageButton>
The problem is that, when the Window is shown, the Validation on the FormPanel is fired and the red icons are showed! I want the validation to be performed only when user click on the "Save" button on the form.
Here is the FormPanel (piece of) Code:
<ext:FormPanel ID="FormPanel1" runat="server" Height="400" Padding="5" MonitorValid="false"
Border="False" LabelWidth="150">
<Defaults>
<ext:Parameter Name="MsgTarget" Value="side" />
</Defaults>
<Items>
<ext:TextField ID="tbx_cd_stor_cabi" runat="server" FieldLabel="Code" Disabled="true"
Width="100" AllowBlank="false" ValidationGroup="Details" />
</Items>
</ext:FormPanel>
I'm using Ext.Net [v1.0].
Any help would be appreciated.
Thank you!!!