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

RadInput accessibility?

1 Answer 39 Views
Input
This is a migrated thread and some comments may be shown as answers.
Gordon Doherty
Top achievements
Rank 1
Gordon Doherty asked on 24 Mar 2010, 03:23 PM
Hi,

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,
Gordopolis

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 24 Mar 2010, 03:53 PM
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.

http://www.telerik.com/help/aspnet-ajax/input_appearancecssfile.html

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:

http://www.telerik.com/support/kb/aspnet-ajax/input/standard-compliant-radinput-and-raddatetimepicker-with-no-tables.aspx
 

Sincerely yours,
Dimo
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.
Tags
Input
Asked by
Gordon Doherty
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or