Turn Off Instant Validation When Losing Focus
I am using dojo as the client framework. I have a ValidationTextBox call txtName as below screen: In txtName, required is set: required='true' If I lose focus and leave txtName
Solution 1:
There isn't a setting that you can just set. But you can monkey patch the ValidationTextBox
to get what you need.
ValidationTextBox.prototype._setValueAttr = function() {
//this.inherited(arguments);//this.validate(this.focused); Do not validateTextBox.prototype._setValueAttr.apply(this, arguments);
};
ValidationTextBox.prototype._refreshState = function(){
TextBox.prototype._refreshState.apply(this, arguments);
};
The full working example: http://jsfiddle.net/cswing/Y7Eqn/
Post a Comment for "Turn Off Instant Validation When Losing Focus"