Issue with DateTimePicker Invalid Style

2 posts, 0 answers
  1. Rafal
    Rafal avatar
    27 posts
    Member since:
    Dec 2007

    Posted 29 Jul 2011 Link to this post

    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
  2. Tsvetina
    Admin
    Tsvetina avatar
    2481 posts

    Posted 04 Aug 2011 Link to this post

    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.

Back to Top