-
Book Overview & Buying
-
Table Of Contents
Ext.NET Web Application Development
By :
Ext.NET provides support for both client-side and server-side (remote) validation. Here we provide an overview of available constraints, validation message appearance configuration, some of the different validation types, and custom validators.
Some fields allow defining the range of acceptable values. TextField and TextArea have MinLength/MaxLength. NumberField has MinValue/MaxValue. DateField has MinDate/MaxDate as well as options to disable specific dates. These properties help to alert the user if the entered value is beyond these bounds.
TextField also has the additional property, EnforceMaxLength, which can be set to true to set maxlength on the underlying HTML input to constraint what you type.
In addition, text fields have a MaskRe property for configuring a regular expression used to filter keystrokes that do not match. It does not, however, filter characters already in the input. There is a similar property called StripCharsRe, which...
Change the font size
Change margin width
Change background colour