HighTechTalks DotNet Forums  

Re: Creating a server control and using tabindex

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss Re: Creating a server control and using tabindex in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Hermit Dave
 
Posts: n/a

Default Re: Creating a server control and using tabindex - 09-15-2004 , 04:58 PM






the way i would suggest is set the first combo to the value set by the user
in designer. the second and third will be incremental values.
since they are 3 different items when rendered i think this is how it should
be.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Charles" <Charles (AT) discussions (DOT) microsoft.com> wrote

Quote:
I am creating a server control that I would like to use three drop down
combo
boxes (for a date, month/day/year).

How can I use tabindex to treat the three combo boxes as one control?

Thanks,
Charles






Reply With Quote
  #2  
Old   
Charles
 
Posts: n/a

Default Re: Creating a server control and using tabindex - 09-16-2004 , 07:57 AM






Thank you for your reply.

I guess I have not tried this yet, however, I think that this will not work.

Lets say I have six controls on a page, all of them have TabIndex set.

So, you have:

Control1 - TabIndex = 1
Control2 - TabIndex = 2
Control3 - TabIndex = 3
Control4 - TabIndex = 4 (This is my own server control)
Control5 - TabIndex = 5
Control6 - TabIndex = 6

Would that mess up the TabIndex for Control5 and 6? Control4 would be using
TabIndex 4, 5 and 6.

How would I set the TabIndex to the three dropdownlist boxes? Currently, I
am using, " writer.AddAttribute(HtmlTextWriterAttribute.Tabind ex,
CType(Me.TabIndex, String))" in the Render Sub.

Thanks!
Charles

"Hermit Dave" wrote:

Quote:
the way i would suggest is set the first combo to the value set by the user
in designer. the second and third will be incremental values.
since they are 3 different items when rendered i think this is how it should
be.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Charles" <Charles (AT) discussions (DOT) microsoft.com> wrote in message
news:6B5FC3BA-ECB4-401B-B54A-06DCEF95A550 (AT) microsoft (DOT) com...
I am creating a server control that I would like to use three drop down
combo
boxes (for a date, month/day/year).

How can I use tabindex to treat the three combo boxes as one control?

Thanks,
Charles







Reply With Quote
  #3  
Old   
Charles
 
Posts: n/a

Default Re: Creating a server control and using tabindex - 09-16-2004 , 09:59 AM



I did do what you have suggested, that did not work out. The first
dropdownlist does get the tabindex correct, the second one is last of the
rest of the controls on the tabindex list.

Thanks!
Charles


"Hermit Dave" wrote:

Quote:
the way i would suggest is set the first combo to the value set by the user
in designer. the second and third will be incremental values.
since they are 3 different items when rendered i think this is how it should
be.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Charles" <Charles (AT) discussions (DOT) microsoft.com> wrote in message
news:6B5FC3BA-ECB4-401B-B54A-06DCEF95A550 (AT) microsoft (DOT) com...
I am creating a server control that I would like to use three drop down
combo
boxes (for a date, month/day/year).

How can I use tabindex to treat the three combo boxes as one control?

Thanks,
Charles







Reply With Quote
  #4  
Old   
Hermit Dave
 
Posts: n/a

Default Re: Creating a server control and using tabindex - 09-16-2004 , 04:25 PM



what happens say if you assigned TabIndex in this way

Control1 - TabIndex = 1
Control2 - TabIndex = 2
Control3 - TabIndex = 3
Control4 - TabIndex = 4 (This is my own server control)
Control5 - TabIndex = 7
Control6 - TabIndex = 8

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Charles" <Charles (AT) discussions (DOT) microsoft.com> wrote

Quote:
I did do what you have suggested, that did not work out. The first
dropdownlist does get the tabindex correct, the second one is last of the
rest of the controls on the tabindex list.

Thanks!
Charles


"Hermit Dave" wrote:

the way i would suggest is set the first combo to the value set by the
user
in designer. the second and third will be incremental values.
since they are 3 different items when rendered i think this is how it
should
be.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Charles" <Charles (AT) discussions (DOT) microsoft.com> wrote in message
news:6B5FC3BA-ECB4-401B-B54A-06DCEF95A550 (AT) microsoft (DOT) com...
I am creating a server control that I would like to use three drop
down
combo
boxes (for a date, month/day/year).

How can I use tabindex to treat the three combo boxes as one control?

Thanks,
Charles









Reply With Quote
  #5  
Old   
Charles
 
Posts: n/a

Default Re: Creating a server control and using tabindex - 09-17-2004 , 07:53 AM



Yeah, that should work.

I was trying to be picky and make it work the way that I described, however,
I guess this would have to work for now.

Thanks,
Charles


"Hermit Dave" wrote:

Quote:
what happens say if you assigned TabIndex in this way

Control1 - TabIndex = 1
Control2 - TabIndex = 2
Control3 - TabIndex = 3
Control4 - TabIndex = 4 (This is my own server control)
Control5 - TabIndex = 7
Control6 - TabIndex = 8

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Charles" <Charles (AT) discussions (DOT) microsoft.com> wrote in message
news:5B0434CB-ED86-4D26-A8D9-51833A0BE999 (AT) microsoft (DOT) com...
I did do what you have suggested, that did not work out. The first
dropdownlist does get the tabindex correct, the second one is last of the
rest of the controls on the tabindex list.

Thanks!
Charles


"Hermit Dave" wrote:

the way i would suggest is set the first combo to the value set by the
user
in designer. the second and third will be incremental values.
since they are 3 different items when rendered i think this is how it
should
be.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Charles" <Charles (AT) discussions (DOT) microsoft.com> wrote in message
news:6B5FC3BA-ECB4-401B-B54A-06DCEF95A550 (AT) microsoft (DOT) com...
I am creating a server control that I would like to use three drop
down
combo
boxes (for a date, month/day/year).

How can I use tabindex to treat the three combo boxes as one control?

Thanks,
Charles










Reply With Quote
  #6  
Old   
Hermit Dave
 
Posts: n/a

Default Re: Creating a server control and using tabindex - 09-18-2004 , 06:21 AM



i know what you mean i have the same habit

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Charles" <Charles (AT) discussions (DOT) microsoft.com> wrote

Quote:
Yeah, that should work.

I was trying to be picky and make it work the way that I described,
however,
I guess this would have to work for now.

Thanks,
Charles


"Hermit Dave" wrote:

what happens say if you assigned TabIndex in this way

Control1 - TabIndex = 1
Control2 - TabIndex = 2
Control3 - TabIndex = 3
Control4 - TabIndex = 4 (This is my own server control)
Control5 - TabIndex = 7
Control6 - TabIndex = 8

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Charles" <Charles (AT) discussions (DOT) microsoft.com> wrote in message
news:5B0434CB-ED86-4D26-A8D9-51833A0BE999 (AT) microsoft (DOT) com...
I did do what you have suggested, that did not work out. The first
dropdownlist does get the tabindex correct, the second one is last of
the
rest of the controls on the tabindex list.

Thanks!
Charles


"Hermit Dave" wrote:

the way i would suggest is set the first combo to the value set by
the
user
in designer. the second and third will be incremental values.
since they are 3 different items when rendered i think this is how
it
should
be.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Charles" <Charles (AT) discussions (DOT) microsoft.com> wrote in message
news:6B5FC3BA-ECB4-401B-B54A-06DCEF95A550 (AT) microsoft (DOT) com...
I am creating a server control that I would like to use three drop
down
combo
boxes (for a date, month/day/year).

How can I use tabindex to treat the three combo boxes as one
control?

Thanks,
Charles












Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.