Telerik RadInput is is a highly customizable server control which is used for data entry. It consists of four components - RadDateInput, RadNumericTextBox, RadTextBox and RadMaskedTextBox. These components ensure that the data entered by the user is verified and accurate.
RadDateInput
RadDateInput is an enhanced date entry control. It ensures that the user enters the data in a correct format.
The most commonly used properties of RadDateInput are:
-
DateFormat - used to specify the date format to which the date picker will render.
-
Culture - used to localize the date format.
-
SelectedDate - used to get or set the date of RadDateInput.
-
ShowSpinButtons - determines whether the spin buttons will be displayed beside the input.
-
ShowButton - determines whether the postback button will be displayed beside the input.
-
ButtonsPosition - designates whether the buttons will be rendered at the left or right side of the input.
-
EmptyMessage - defines the message which will appear when the textbox is left empty.
Find more about working with RadDateInput in the Telerik RadInput Components chapter.
RadNumericTextBox
RadNumericTextBox allows you to filter the input entered by the user and forbid entering data which is not in a numeric format.
The most commonly used properties of
RadNumericTextBox are:
-
Type - used to specify the number format to which the numeric textbox will render (Number, Percent or Currency).
-
Culture - used to localize the numeric format.
-
ShowSpinButtons - determines whether the spin buttons will be displayed beside the input.
-
ShowButton - determines whether the postback button will be displayed beside the input.
-
ButtonsPosition - designates whether the buttons will be rendered at the left or right side of the input
-
EmptyMessage - defines the message which will appear when the textbox is left empty.
Find more about working with RadNumericTextBox in the Telerik RadInput Components chapter.
RadTextBox
RadTextBox is is build over the standard MS TextBox control and exposes several additional features like predefined skins, empty message support, conditional postback on text change, flexible caret/button positioning and text selection on focus, etc.
The most commonly used properties of RadTextBox are:
-
Text - used to specify the text string displayed in the input.
-
Columns - used to define the width of the textbox (in characters).
-
Rows - used to define the number of rows when RadTextBox is in multiline mode.
-
Wrap - specifies whether the text will be wrapped.
-
MaxLength - defines the maximum number of characters the textbox will accept
-
EmptyMessage - defines the message which will appear when the textbox is left empty.
-
ReadOnly - boolean property specifying whether the textbox is in read-only mode or not.
Find more about working with RadTextBox in the Telerik RadInput Components chapter.
RadMaskedTextBox
RadMaskedTextBox is an enhanced data entry control. It uses a mask to distinguish between proper and improper user input. You can use a mask to specify the accepted format such as IP address, telephone number, currency, etc. RadMaskedTextBox can be used together with validators (such as the RequiredValidator and RegularExpressionValidator controls) to enforce any custom validation logic.
|
IP Address |
Social Security Number |
 |
 |
The most commonly used properties of RadMaskedTextBox are:
- HideOnBlur - determines whether RadMaskedTextBox will hide its prompt when losing focus, if its value is not set.
- Mask - gets or sets the accepted format of the RadMaskedTextBox.
- MaskParts - allows the user to build the mask programmatically by adding mask part objects.
- Text - used to get or set the text of RadMaskedTextBox.
Additional details on working with RadMaskedTextBox you can find in Telerik RadInput Components chapter.
See Also