FormPanel validation unexpected firing

  1. #1

    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!!!
  2. #2

    RE: FormPanel validation unexpected firing

    Anyone, please?



    Thank you!
  3. #3

    RE: FormPanel validation unexpected firing

    Guess I've figured out the solution:

    protected override void OnPreRender(EventArgs e)
    {


    base.OnPreRender(e);


    this.FormPanel1.ClearInvalid();


    }

Similar Threads

  1. Validation without FormPanel
    By AlexMaslakov in forum 1.x Help
    Replies: 6
    Last Post: Sep 09, 2011, 9:22 AM
  2. FormPanel Validation
    By Ganesh3.shirsath in forum 1.x Help
    Replies: 1
    Last Post: Oct 07, 2010, 8:11 AM
  3. FormPanel Validation does not work
    By weiguo526 in forum 1.x Help
    Replies: 0
    Last Post: May 12, 2010, 11:40 AM
  4. Help, FormPanel Validation Invalid
    By diego in forum 1.x Help
    Replies: 0
    Last Post: Jan 21, 2010, 11:23 AM
  5. Replies: 3
    Last Post: Mar 28, 2008, 3:57 PM

Posting Permissions