I’ve been trying to exclude an asp.net web control from the tabbing order.
The control that i’m using is the RadioButtonList control. I’ve try setting the TabIndex to either 0 or -1.
The problem that i’m running into is … initially the control is skipped (which is good), but it seemed like the engine just shifted the control to the end of the tabbing order.
Is this an expected behavior? or is there a work around for this?
After checking the HTML source, I have some interesting findings …
<td><input id="rbSpiffType_0" type="radio" name="rbSpiffType" value="R" checked="checked" tabindex="-1" /><label for="rbSpiffType_0">Regular Spiff</label></td><td>
I think i might be tabbing into the label … any ideas how to fix that in ASP.NET?
The issue may be the individual radio buttons don’t have a tab index of -1, try looping through the RBL’s Items collection, and do:
And see if that clears it up. It might actually be item.Attributes[“tabindex”], can’t remember the exact syntax at the moment.