RadInput accessibility?

2 posts, 0 answers
  1. Gordon Doherty
    Gordon Doherty avatar
    6 posts
    Member since:
    Jan 2010

    Posted 24 Mar 2010 Link to this post


    I'm using the WAVE toolbar for firefox to detect accessibility issues with my asp.net pages.

    One common issue I've found with RADInputs (textboxes, datepickers etc) is that WAVE highlights the following error:

    "A form <input>, <select> or <textarea> does not have a corresponding label (Note:labels are not required for image, submit, reset, button or hidden for element types)."

    ...now I have a <label for="myctl"> associated with each of my RAD inputs, so I am assuming that the WAVE error is related to the hidden fields that comprise the internals of the RAD input? Indeed, if i remove my <label for=""> elements, I get one more WAVE error per RAD input, so this seems to confirm my thinking.

    So is there a simple way to make the hidden fields accessible too, so they don't show up as errors?

    Thanks in advance,

  2. Dimo
    Dimo avatar
    8482 posts

    Posted 24 Mar 2010 Link to this post

    Hello Gordon,

    RadInput consists of a visible textbox and 1-2 non-visible, which are for internal use. Although automatic validation tools will report these textboxes to have missing labels, you don't have to add labels for them, as they are not used by the end-users. You only need a label for the visible textbox.

    If you prefer to have a 100% valid page, then you can add <label>s for the invisible textboxes too, but you can hide those labels, as they practically will point to nothing.


    RadInput1_text is the visible textbox. All others are not.

    You can use either the built-in Label of the RadInput textboxes or a separate one, if you prefer to have a RadInput control with no tables:


    Sincerely yours,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top