Exclusion Validation

  1. #1

    Exclusion Validation

    I'm validating a gridpanel column against its model but having trouble with exclusion validation.
    All values except 0 are valid but using the code bellow i'm getting always invalid.
    Any ideas of what I' might be doing wrong?

     <ext:ExclusionValidation Field="FormularioId" List="0" Message="Seleccione formulario" ></ext:ExclusionValidation>
  2. #2
    Try to use this one:

    readonly string[] exclusiveValidationValues = new string[] { "0" }; // <-- Declare this variable in PageCode
    
    <ext:ExclusionValidation Field="salary" List="<%= exclusiveValidationValues %>" Message="Seleccione formulario" ></ext:ExclusionValidation>
  3. #3
    Quote Originally Posted by Baidaly View Post
    Try to use this one:

    readonly string[] exclusiveValidationValues = new string[] { "0" }; // <-- Declare this variable in PageCode
    
    <ext:ExclusionValidation Field="salary" List="<%= exclusiveValidationValues %>" Message="Seleccione formulario" ></ext:ExclusionValidation>
    Tried this but unfortunately I get the same behaviour...
  4. #4
    Can you provide test sample?
  5. #5
    Hi,

    Need to use <%# ... %> syntax (instead <%= ... %> and AutoDataBind=true)

    'List="0"' issue is fixed in SVN, the fix will be available in the next public release
    Workaround, define two '0'
    List="0,0"
  6. #6
    Quote Originally Posted by Vladimir View Post
    Hi,

    Need to use <%# ... %> syntax (instead <%= ... %> and AutoDataBind=true)

    'List="0"' issue is fixed in SVN, the fix will be available in the next public release
    Workaround, define two '0'
    List="0,0"
    Thankyou very much

Similar Threads

  1. Validation?is this a bug?
    By richard in forum 2.x Help
    Replies: 3
    Last Post: Jul 12, 2012, 4:41 PM
  2. Client Side Validation and Validation Status
    By speddi in forum 1.x Help
    Replies: 8
    Last Post: Nov 03, 2011, 11:24 AM
  3. Validation
    By alexrodi82 in forum 1.x Help
    Replies: 3
    Last Post: Aug 02, 2011, 8:22 PM
  4. Replies: 3
    Last Post: Jul 11, 2011, 9:43 AM

Tags for this Thread

Posting Permissions