Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

Tab Order in Repeater ir vertical, should be horizontal

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill Nicholson - 29 Jul 2007 03:53 GMT
I have a repeater control control that displays a set of records. When
I tab through the fields, the active field moves downward through the
current column. When it gets to the last record it moves to the next
column. How can I use the tab key to move through the row and then
down to the next row?

Thanks,

Bill
Cincinnati, OH USA
Eliyahu Goldin - 29 Jul 2007 08:10 GMT
If you make the repeater in such a way that the resulting html will be a
table, the tab order will be left-to-right top-to-bottom. If you don't
produce a table, you can ensure the proper tab order by setting the TabIndex
properties for the controls on the item template.

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

>I have a repeater control control that displays a set of records. When
> I tab through the fields, the active field moves downward through the
[quoted text clipped - 6 lines]
> Bill
> Cincinnati, OH USA
Mark Rae [MVP] - 29 Jul 2007 08:33 GMT
> If you make the repeater in such a way that the resulting html will be a
> table, the tab order will be left-to-right top-to-bottom. If you don't
> produce a table, you can ensure the proper tab order by setting the
> TabIndex properties for the controls on the item template.

tabIndex is not cross-browser compatible...

The W3C DOM (and, therefore, most modern browsers) limits the tabIndex
property to anchors, areas, buttons, inputs, objects, selects and textareas.

It is only IE5 and above which supports tabIndex for all renderable
elements...

It is not supported at all by any version of Netscape...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Eliyahu Goldin - 29 Jul 2007 09:03 GMT
> The W3C DOM (and, therefore, most modern browsers) limits the tabIndex
> property to anchors, areas, buttons, inputs, objects, selects and
> textareas.

Sounds pretty good, this should be about 99.99% of what you may need tab
order for.

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

Bill Nicholson - 01 Aug 2007 18:12 GMT
I don't know how to interpret your reply. Are you suggesting a
solution?

> > If you make the repeater in such a way that the resulting html will be a
> > table, the tab order will be left-to-right top-to-bottom. If you don't
[quoted text clipped - 14 lines]
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net
Bill Nicholson - 01 Aug 2007 18:11 GMT
I still don't get it.

My repeater control has one table in it and that table has one row
with multiple columns.
I have the tab order set correctly, left to right, but the browser
still tabs top to bottom, then back to the top of the next column,
then top to bottom of that column, etc.

On Jul 29, 3:10 am, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.org> wrote:
> If you make the repeater in such a way that the resulting html will be a
> table, the tab order will be left-to-right top-to-bottom. If you don't
[quoted text clipped - 16 lines]
> > Bill
> > Cincinnati, OH USA
Mark Rae [MVP] - 01 Aug 2007 18:26 GMT
>I still don't get it.
>
[quoted text clipped - 3 lines]
> still tabs top to bottom, then back to the top of the next column,
> then top to bottom of that column, etc.

Like I said, tabIndex is not guaranteed to work in all versions of all
browsers...

What browser are you using?

How are you constructing the repeater?

Does View Source show the tabIndex properties correctly set for each <td>
rendered by the repeater...?

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Bill Nicholson - 02 Aug 2007 04:25 GMT
I am using IE 6.0.02900.2180.xpsp_sp2_gdr_070227-2254, pretty standard
browser.
I am constructing the repeater with one table in it and one row in
that table.
I have the tab order set correctly, left to right, but the browser
still tabs top to bottom, then back to the top of the next column,
then top to bottom of that column, etc.
View / Source shows that the HTML has been rendered to tab down the
column, back up to the top of the next column, down that column, etc.

I think I posted all this, except the browser version, in my previous
message....

> >I still don't get it.
>
[quoted text clipped - 17 lines]
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net
Eliyahu Goldin - 02 Aug 2007 07:17 GMT
> View / Source shows that the HTML has been rendered to tab down the
> column, back up to the top of the next column, down that column, etc.
How do you now? Do you set the tabindex attribute?

What exactly is in your itemtemplate? It should cointan only <tr>..</tr>,
not <table>..</table>. With that you shouldn't need any tabindex.

Can you show the markup for the repeater?

Signature

Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin

> I am using IE 6.0.02900.2180.xpsp_sp2_gdr_070227-2254, pretty standard
> browser.
[quoted text clipped - 30 lines]
> > Mark Rae
> > ASP.NET MVPhttp://www.markrae.net
Mark Rae [MVP] - 02 Aug 2007 07:33 GMT
> I think I posted all this, except the browser version, in my previous
> message....

You still haven't posted any markup or code-behind...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.