Controls validation

  1. #1

    Controls validation

    I'd like to implement following behaviour:

    Some fields do not allow blank, when page is loaded for the firs time fields should not display any alerts, but when button is clicked, all fields that have AllowBlank=false property should be evaluated, and alerts should be displayed.

    Currently, when I click button fields that were not edited (never gained focus) would not display alerts.

    Could You help me ?
  2. #2

    RE: Controls validation

    Hi,

    You should call validate function for each required control


    <ext:Button ...>
    ** *<Listeners>
    ** * * * *<Click Handler="#{TextField1}.validate();...."/>
    ** *</Listeners>

    </ext:Button>*
  3. #3

    RE: Controls validation

    Thanks, vladimir !
  4. #4

    RE: Controls validation

    How would you do the same in a GridPanel?
  5. #5

    RE: Controls validation

    Is there a way to determine if control is in valid/invalid state?
  6. #6

    RE: Controls validation

    Hi,


    isValid functionPlus validate function return state also

    *

Similar Threads

  1. [CLOSED] Apply EXT validation Style on HTML controls.
    By farisqadadeh in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 03, 2011, 11:39 PM
  2. Asp.Net Validation Control with Ext.Net Controls
    By huzzy143 in forum 1.x Help
    Replies: 2
    Last Post: Sep 08, 2011, 8:32 PM
  3. Replies: 2
    Last Post: Aug 24, 2010, 11:31 PM
  4. [CLOSED] Is it possible to use validation controls in 0.7.0
    By Satyanarayana murthy in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 29, 2009, 7:43 PM

Posting Permissions