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

DateInput Validators

2 Answers 70 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Drew
Top achievements
Rank 1
Drew asked on 21 May 2009, 05:53 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Iana Tsolova
Telerik team
answered on 26 May 2009, 07:40 AM
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.
0
Drew
Top achievements
Rank 1
answered on 26 May 2009, 08:08 PM
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
Tags
Calendar
Asked by
Drew
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Drew
Top achievements
Rank 1
Share this question
or