Announcement

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

    changing default validation error feedback

    Hi,
    I have disabled listgrid validations for my grid.
    But some of fields are like date i want to validate by explicitely calling
    validateCell(..) method. But i think default behaviour of this method is that it shows red border and problem icon on field if validation results in failure.

    I just want to use this method to run my configured rules at field (if any)
    without any feed back field.

    How can i change this default feedback to none ?

    #2
    Hi Mithun
    The right approach depends on what exactly you're trying to achieve.

    If you want to explicitly test the current edit-values for some record and modify them before saving, the easiest way is probably to avoid the validation subsystem altogether and simply call 'getEditValues()' on the row in question, and if necessary call 'setEditValue()' to change the value of fields that need tweaking.

    If you want this to occur automatically when the record is being saved, you can do this by overriding the saveEdits method to perform your custom validation. If you want to continue with the save having performed the validation (and changed the edit values if appropriate), you can call this.Super("saveEdits", arguments); to allow the save to be committed.

    If this won't work for you, can you describe exactly what you're trying to achieve and we'll try to recommend a more appropriate approach

    Thanks
    Isomorphic Software

    Comment

    Working...
    X