RadDateInput and RadTimeInput WAVE validation

2 posts, 0 answers
  1. neil
    neil avatar
    2 posts
    Member since:
    Dec 2010

    Posted 27 Jan 2014 Link to this post

     <asp:label ID="rtStartTimelbl" AssociatedControlID="rtStartTime" Runat="server" meta:resourcekey="rtStartTimelblResource1" Text="Start Time"></asp:label>
     <telerik:RadTimePicker ID="rtStartTime" Font-Size="Medium" SelectedDate='<%# setdefaultStartTime %>' DateInput-ID="rtStartTimeInput"  
                    Runat="server" Culture="en-US" DateInput-DateFormat="M/d/yyyy" DateInput-DisplayDateFormat="M/d/yyyy" meta:resourcekey="rtStartTimeResource1">
                    <DatePopupButton ImageUrl="/icons32/clock.png" HoverImageUrl="/icons32/clock.png"
                        CssClass="" />

    When I try to validate the page using WAVE, this code prompts an error of a missing label for the rtStartTime - I've tried just regular labels as well but still doesn't work.  I've read something about changing the AssociatedControlID to rtStartTime_Input but that didn't work either.  I'm using an older version of Telerik so perhaps this has been addressed in future versions but shouldn't this be straight forward?  What am I missing.

    Thanks as always!
  2. Deyan Enchev
    Deyan Enchev avatar
    60 posts

    Posted 30 Jan 2014 Link to this post


    I am uncertain which exactly version of Telerik.UI are you using but still with the most recent versions WAVE validation error should not be occurring. Still there are two approaches you can try and let us know of the results:
    • Use AssociatedControlID="rtStartTime_DateInput" instead of AssociatedControlID="rtStartTime;
    • There is no explicit need of using an “external” label as the DatePicker and DateInput controls have a DateInput-Label property. It is meant to be used in scenarios where additional labels are needed.

    In addition could you try reproducing the errors you get on our online demo for TimePicker/DateTimePicker – Accessibility. In case you succeed, please send us the exact steps that need to be followed. This way we can further analyze the potential problem and advice you.

    Deyan Enchev
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top