Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How can I customize or extend com.smartgwt.client.widgets.form.validator.Validat or ?

    I need to provide a custom client validation

    Let's say I need to make sure the format is ###.###.##-## using mask validator

    Then I need to get fields before dash (-) and after dash (-)

    if the sum of numbers of the first block is 11
    and the last 2 digits sum are 11

    then return valid

    otherwise return false.

    I didn't want to use a server dmi validator for this as I am avoiding having to have server roundtrips

    I need to extend com.smartgwt.client.widgets.form.validator.Validator
    and make a custom class for my needs.

    Cheers,

    EJ

    #2
    have a look at: http://forums.smartclient.com/showthread.php?t=14153&highlight=CustomValidator

    Comment

    Working...
    X