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

Issue with DateTimePicker Invalid Style

1 Answer 46 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Rafal
Top achievements
Rank 1
Rafal asked on 29 Jul 2011, 08:42 PM
Hi

I set the Date Time picker invalid style to my own custom class and it keeps insisting to use the default
:html body .RadInput_Default .riError, html body .RadInput_Error_Default

I override the RadDateTimePicker and set the class on the init

 protected override void OnInit(EventArgs e)
 {
DateInput.InvalidStyle.CssClass = "dateInputInvalid";
}

I use the following client side code to set the input invalid

fieldObj.get_dateInput()._invalid = true;
fieldObj.get_dateInput().updateCssClass();

Any Ideas what could be causing this?

Thanks
Rafal

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 04 Aug 2011, 10:01 AM
Hi Rafal,

I would advise you to change the picker error style dynamically on the client as shown in this forum thread:
Showing Error Style Programmatically?

Greetings,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Calendar
Asked by
Rafal
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or