DateInput Validators

3 posts, 1 answers
  1. Drew
    Drew avatar
    22 posts
    Member since:
    Mar 2009

    Posted 21 May 2009 Link to this post

    By default, the DatePicker control has built in validation style. We already have validation standards setup on our site and would like to continue using them. How can we disable the DatePicker's validation and use only the .Net validators we have in place?

    Drew
  2. Answer
    Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 26 May 2009 Link to this post

    Hello Drew,

    In order to achieve your goal, you could try setting your own class for the DatePicker DateInput control as below:

    <telerik:RadDatePicker ID="RadDatePicker1" runat="server">  
        <DateInput InvalidStyle-CssClass="<MyInvalidStyleClass>"></DateInput> 
    </telerik:RadDatePicker> 

    Another option is to override the Skin .riError class that controls the text area when it's value is invalid. Find more information RadDateInput Skins here.

    I hope this helps.

    All the best,
    Iana
    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.
  3. Drew
    Drew avatar
    22 posts
    Member since:
    Mar 2009

    Posted 26 May 2009 Link to this post

    Iana,

    I started to work on over-riding the style and I can see where it would have eventually worked out, however, what I decided to do was just use a standard TextBox control and link the calender popup to it. Thank you for your help.

    Drew
Back to Top