[CLOSED] how to control the validation sequence between the client side validation and remote validation

  1. #1

    [CLOSED] how to control the validation sequence between the client side validation and remote validation

    Hi:

    I have a textfield which I need to apply some validation rules on it.
    1. the input length must between 4 and 50
    2. if the input length is ok, then use remote validation to check the input is match the business rules

    here is my textfield markup
                                       <ext:TextField ID="textPlanName" Width="270" AllowBlank="false" MaxLength="50" MinLength="4"
                                            runat="server" FieldLabel="Name"
                                            ValidateOnBlur="false" MsgTarget="Side" Text="" 
                                            BlankText="You must input the name." IsRemoteValidation="true">
                                            <RemoteValidation   Url="~/Controller/CheckName" Json="true" Delay="300" >
                                            </RemoteValidation>
                                        </ext:TextField>
    I found I can not control the validation sequence.
    Even I input 3 length string, the remote validation will always fired.

    My question is whether is a way to control the validation process?
    Thank you
    Last edited by Daniil; Jul 11, 2011 at 10:11 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Try to add the following listener to the field
    <BeforeRemoteValidation Handler="return this.originalIsValid(true);" />
  3. #3
    Hi,

    Fixed in SVN, now client validation is performed before remote validation
  4. #4
    Quote Originally Posted by Vladimir View Post
    Hi,

    Fixed in SVN, now client validation is performed before remote validation
    Will update from svn and try again. Thank you

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: 6
    Last Post: Oct 07, 2012, 5:14 PM
  3. Client Side Validation and Validation Status
    By speddi in forum 1.x Help
    Replies: 8
    Last Post: Nov 03, 2011, 11:24 AM
  4. Client & Server Side Control Validation
    By r_honey in forum 1.x Help
    Replies: 3
    Last Post: Dec 27, 2009, 5:16 AM
  5. Client-side validation for gridpanel editor
    By fquintero in forum 1.x Help
    Replies: 1
    Last Post: Oct 07, 2009, 10:39 AM

Posting Permissions