Force Remote Validation before saving

  1. #1

    Force Remote Validation before saving

    Hi,

    I have my FormPanel with some fields using RemoteValidation
    When I press the Save button I wanted to validate this fields before trying to submit the form so I won't go to my Submit method if there are some fields still not validated
    is there a way to do this?

    thanks
  2. #2
    Hi,

    I guess that better to validate the fields inside Save server side methods instead forcing remote validation for each field
  3. #3
    Hi Vladimir,

    thanks for the reply, I understand that it is better to validate on method than force it before saving,
    but is there a way to make real time validation using the RemoteValidation (like validating the fields from time to time)?

    thanks
  4. #4

    i have the same question

    I use remote validation on textfielld
    <Ext:TextField ID="txtUserName" runat="server" FieldLabel="用户名" AnchorHorizontal="30%"
                            IsRemoteValidation="true" AllowBlank="false" MinLength="2" MsgTarget="Side" MaxLength="20"
                            Regex="^[a-zA-Z]{1}([a-zA-Z0-9]|[._]){1,19}$" RegexText="用户名不合法(必须以字母开头,长度6-12位)!">
                            <RemoteValidation OnValidation="CheckUserName" />
                        </Ext:TextField>
    when i press the button ,the js funtion
    #{Panel4}.getForm().isValid()
    the remote validation can't be invoked auto. Why?

Similar Threads

  1. [OPEN] [#100] Validation - Remote/Client
    By adelaney in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Dec 29, 2012, 6:12 AM
  2. Replies: 3
    Last Post: Jul 11, 2011, 9:43 AM
  3. [CLOSED] Force remote reloading of ComboBox on each query
    By r_honey in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 05, 2010, 3:59 PM
  4. Replies: 1
    Last Post: Jan 26, 2010, 10:46 AM
  5. Remote Validation
    By olimpia in forum 1.x Help
    Replies: 0
    Last Post: Jun 12, 2009, 7:39 PM

Tags for this Thread

Posting Permissions