Required Filed + Mask + DateTime Picker + Client Validation

2 posts, 0 answers
  1. GUTIERREZ Nicolas
    GUTIERREZ Nicolas avatar
    13 posts
    Member since:
    Feb 2008

    Posted 07 May 2009 Link to this post


    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 ?
  2. Sebastian
    Sebastian avatar
    9934 posts

    Posted 11 May 2009 Link to this post

    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,
    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.
Back to Top