This is a migrated thread and some comments may be shown as answers.

RadTextBox and HTML5 Compatibility

1 Answer 55 Views
Input
This is a migrated thread and some comments may be shown as answers.
Tia
Top achievements
Rank 1
Tia asked on 25 Mar 2013, 05:01 PM
Hi,

Please let me know whether the RadTextBox provides support for the new HTML5 input types such as Number, Date etc.

Thanks,
Tia.

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 26 Mar 2013, 04:30 AM
Hi,

As of Q3 2011 RadTextBox provides support for the new HTML5 input types. To leverage this functionality you can use the InputType property of the control.


You can set to the following values:
  • Text - RadTextBox renders an input of type text and allows entering any type of string.
  • Number - RadTextBox renders an input of type number and only numbers are recognized as valid entry.
  • Date - RadTextBox renders an input of type date and lets the user enter only dates.
  • Time - RadTextBox renders an input of type time and lets the user enter only time.
  • DateTime - RadTextBox renders an input of type datetime and allows for specifying the time part of the DateTime object.


Note that not all browsers support HTML5 input types. Those which do not recognize the new input types currently behave as if the input is with type set to text.

Thanks,
Princy.

Tags
Input
Asked by
Tia
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or