Welcome Guest Search | Active Topics | Sign In | Register

DatePicker TabIndex Ignored Options
Gordsh
Posted: Thursday, March 15, 2012 2:41:41 PM
Rank: Member
Groups: Member

Joined: 8/16/2009
Posts: 13
Hello, I have noticed a very strange problem with the DatePicker control in a WebForm that is also populated with other controls.

Lets say I have a Webform with controls in the following order and TabIndexes:

----------------WebForm----------------
Textbox1 - TabIndex 1
DatePicker1 - TabIndex 2
Textbox2 - TabIndex 3
Textbox3 - TabIndex 4
Textbox4 - TabIndex 5
DatePicker2 - TabIndex 6
Textbox5 - TabIndex 7
----------------WebForm----------------

If I click on Textbox1 and then tab the cursor goes to DatePicker1 and then skips all other TextBoxes and goes directly to DatePicker2.

Essentially it is ignoring the TabIndexes of all the other controls and so if there are number of DatePicker controls on the form once you tab away from the current DatePicker the cursor jumps directly to the next DatePicker on the form.

Anyone has a solution for this?
eo_support
Posted: Thursday, March 15, 2012 4:03:47 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

The best way to do this is to drop tab index for all controls so that the browser will handle the tab index as they appear in the HTML. Currently the DatePicker's TabIndex is rendered on the DatePicker, not on the DatePicker's textbox, which cause the browser to focus on the DatePicker instead of the textbox, so it does not work.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.