I am using SmartClient_v91p_2014-04-30_PowerEdition and I need to apply a regexp validator on one of the ListGridFields, the validator works and points out invalid expressions, but when either the filterButton is clicked or Enter key is pressed it still attempts to filter eventually resulting in an error, I need the filter function to not execute when validation fails.
this is the validator on the ListGridField's filterEditorProperties:
this is the validator on the ListGridField's filterEditorProperties:
Code:
validators: [ { type: "regexp", expression: /^(<|>|=|<=|>=)?(?!-0(\.0+)?$)-?([1-9]\d*|0){1}(\.\d+)?$|^(?!-0(\.0+)?\.\.\.)-?([1-9]\d*|0){1}(\.\d+)?\.\.\.(?!-0(\.0+)?$)-?([1-9]\d*|0){1}(\.\d+)?$/, errorMessage: "Expressão inválida", stopOnError:true } ], validateOnExit: true
Comment