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

Required Filed + Mask + DateTime Picker + Client Validation

1 Answer 123 Views
Input
This is a migrated thread and some comments may be shown as answers.
GUTIERREZ Nicolas
Top achievements
Rank 1
GUTIERREZ Nicolas asked on 07 May 2009, 03:20 PM
Hi,

I have a grid with a DateTime column and I want to show the "__/__/____ __:__:__" Mask, be able to select the date and time with a DateTimePicker, validating Client-Side if the datetime format is good and the textbox is not empty, and if not, showing Client-Side the Alert Icon (/!\) in the textbox, without using neither requiredFieldValidators nor RegularExpressionValidators but only Telerik components.

In fact I want to combine the RadDateTimePicker, the RadMaskedTextBox and the RegExpTextBoxSetting.

Is it possible to combine all these options for a single textbox ?

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 11 May 2009, 03:10 PM
Hello Nicolas,

Unfortunately I do not think that combining the functionality exposed by RadMaskedTextBox, RadDateTimePicker and RegExp validation is possible. You should either use RadMaskedTextBox with a custom mask definition or utilize our RadDateTimePicker control with its built-in date parsing/validation mechanism.

Nevertheless, if you prove me wrong and discover means to incorporate both behaviors into one control, I will appreciate if you post the solution in this public forum thread. If this appears to be universal cross/browser solution, I will reward you with some Telerik points which can be used as a discount for future upgrades/purchases of our products.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Input
Asked by
GUTIERREZ Nicolas
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or