-
Notifications
You must be signed in to change notification settings - Fork 139
FilteredTextBoxExtender
FFilteredTextBox is an extender that either allows users to enter only characters that you define into a text box or prevents users from entering specified characters.
Note that as the extender relies on JavaScript, you should never assume that data that is sent to the server consists only of allowed characters. Always perform server-side validation check on data that is sent from the client.
Name | Description |
---|---|
FilterInterval | An integer that specifies an interval in milliseconds, in which the field's content is filtered. Remarks: The default is 250 |
FilterMode | A filter mode to apply. Supported values are ValidChars and InvalidChars. If the property is set to InvalidChars, FilterType must be set to Custom. ValidChars is default. Remarks: If the property is set to ValidChars, FilterType must be set to Custom. |
FilterType | A filter type to apply that is specified as a comma-separated combination of the following values: Numbers, LowercaseLetters, UppercaseLetters, and Custom. Custom is default. Remarks: If Custom is specified, the ValidChars property will be used in addition to other settings, such as Numbers. |
InvalidChars | A string that consists of all characters that are considered invalid for the text box when the field type is Custom. Remarks: If the field type is not Custom, this property value is ignored. |
ValidChars | A string that consists of all characters that are considered valid for the text box when the field type is Custom. Remarks: If the field type is not Custom, this property value is ignored. |
Name | Description |
---|---|
filterInterval | An interval in milliseconds, in which the field's content is filtered. |
filterMode | The Sys.Extended.UI.FilterModes object that specifies the mode to apply to a FilterTextBox instance. |
filterType | The Sys.Extended.UI.FilterTypes object to apply to a FilterTextBox instance. |
invalidChars | A string that consists of all characters that are considered invalid for the text box when the field type is Custom. |
validChars | A string that consists of all characters that are considered valid for the text box when the field type is Custom. |
Name | Description |
---|---|
filtered | Fires when the TextBox is filtered. |
processKey | Fires when a key is processed. |
An interval in milliseconds, in which the field's content is filtered.
Getter name: get_filterInterval()
Setter name: set_filterInterval(value)
The Sys.Extended.UI.FilterModes object that specifies the mode to apply to a FilterTextBox instance.
Remarks: Supported values are ValidChars and InvalidChars.
Getter name: get_filterMode()
Setter name: set_filterMode(value)
The Sys.Extended.UI.FilterTypes object to apply to a FilterTextBox instance.
Remarks: The filter type to apply can be a comma-separated combination of the following values: Numbers, LowercaseLetters, UppercaseLetters, and Custom. If Custom is specified, the ValidChars property will be used in addition to other settings, such as Numbers.
Getter name: get_filterType()
Setter name: set_filterType(value)
A string that consists of all characters that are considered invalid for the text box when the field type is Custom.
Remarks: If the field type is not Custom, this property value is ignored.
Getter name: get_invalidChars()
Setter name: set_invalidChars(value)
A string that consists of all characters that are considered valid for the text box when the field type is Custom.
Remarks: If the field type is not Custom, this property value is ignored.
Getter name: get_validChars()
Setter name: set_validChars(value)
Fires when the TextBox is filtered.
Add event handler method: add_filtered(handler)
Remove event handler method: remove_filtered(handler)
Raise event method: raise_filtered()
Fires when a key is processed.
Add event handler method: add_processKey(handler)
Remove event handler method: remove_processKey(handler)
Raise event method: raise_processKey()
This content was moved from https://ajaxcontroltoolkit.codeplex.com/documentation to this Documentation wiki. This is now the authoritative location of the AJAX Control Toolkit documentation.
- Step-by-Step Installation Guide
- Upgrading from v7.x and below
- Uninstalling the AJAX Control Toolkit
- Troubleshooting Installer Issues
- Updating the Project from CI Builds
- How to Use Bundling and CDN
- Creating a Custom Localization
- Creating a Custom Control
- Design Standards
Controls:
- Accordion
- AjaxFileUpload
- AreaChart
- AsyncFileUpload
- BarChart
- BubbleChart
- ComboBox
- Editor (deprecated)
- Gravatar
- LineChart
- NoBot
- PieChart
- Rating
- ReorderList
- Seadragon
- TabContainer
- TabPanel
Extenders:
- AlwaysVisibleControl
- Animation
- AutoComplete
- BalloonPopup
- Calendar
- CascadingDropDown
- CollapsiblePanel
- ColorPicker
- ConfirmButton
- DragPanel
- DropDown
- DropShadow
- DynamicPopulate
- FilteredTextBox
- HoverMenu
- HtmlEditor
- ListSearch
- MaskedEdit
- MaskedEditValidator
- ModalPopup
- MultiHandleSlider
- MutuallyExclusiveCheckBox
- NumericUpDown
- PagingBulletedList
- PasswordStrength
- PopupControl
- ResizableControl
- RoundedCorners
- Slider
- SlideShow
- TextBoxWatermark
- ToggleButton
- UpdatePanelAnimation
- ValidatorCallout