Showing posts with label dropdown. Show all posts
Showing posts with label dropdown. Show all posts

Monday, March 26, 2012

oh no! another datagrid dropdown question!

I'm getting there!!!!
I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
to create my dropdown list from a database. The DDL gets populated! The
artical says, "then set the index as you normally would". Well, what can i
say i can't figure out how to set it.
any ideas would be great!
thanks
kesi guess i need to know where to set the selectedindex as well as how.
thanks
kes
"Kurt Schroeder" wrote:

> I'm getting there!!!!
> I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
> to create my dropdown list from a database. The DDL gets populated! The
> artical says, "then set the index as you normally would". Well, what can i
> say i can't figure out how to set it.
> any ideas would be great!
> thanks
> kes
You set the index like this:
dropdown.SelectedIndex = 0; // or whatever value you want 1,2,3.
"Kurt Schroeder" wrote:

> I'm getting there!!!!
> I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
> to create my dropdown list from a database. The DDL gets populated! The
> artical says, "then set the index as you normally would". Well, what can i
> say i can't figure out how to set it.
> any ideas would be great!
> thanks
> kes
thanks for answering.
that will not work because the dropdown list is a child control of the
datagrid. I tried it and i gives me a run time error. even afteri manuelly
decoarred it a protected with events...
but thanks! and please let me know if i'm wrong about this!
kes
"Tu-Thach" wrote:
> You set the index like this:
> dropdown.SelectedIndex = 0; // or whatever value you want 1,2,3.
> "Kurt Schroeder" wrote:
>
How did you get a hold of the DropDownList? Did you use the FindControl
method?
"Kurt Schroeder" wrote:
> thanks for answering.
> that will not work because the dropdown list is a child control of the
> datagrid. I tried it and i gives me a run time error. even afteri manuelly
> decoarred it a protected with events...
> but thanks! and please let me know if i'm wrong about this!
> kes
> "Tu-Thach" wrote:
>
i have it figured out now, thanks.
kes
"Tu-Thach" wrote:
> How did you get a hold of the DropDownList? Did you use the FindControl
> method?
> "Kurt Schroeder" wrote:
>

oh no! another datagrid dropdown question!

I'm getting there!!!!
I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
to create my dropdown list from a database. The DDL gets populated! The
artical says, "then set the index as you normally would". Well, what can i
say i can't figure out how to set it.
any ideas would be great!
thanks
kesi guess i need to know where to set the selectedindex as well as how.
thanks
kes

"Kurt Schroeder" wrote:

> I'm getting there!!!!
> I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
> to create my dropdown list from a database. The DDL gets populated! The
> artical says, "then set the index as you normally would". Well, what can i
> say i can't figure out how to set it.
> any ideas would be great!
> thanks
> kes
You set the index like this:

dropdown.SelectedIndex = 0; // or whatever value you want 1,2,3.

"Kurt Schroeder" wrote:

> I'm getting there!!!!
> I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
> to create my dropdown list from a database. The DDL gets populated! The
> artical says, "then set the index as you normally would". Well, what can i
> say i can't figure out how to set it.
> any ideas would be great!
> thanks
> kes
thanks for answering.
that will not work because the dropdown list is a child control of the
datagrid. I tried it and i gives me a run time error. even afteri manuelly
decoarred it a protected with events...
but thanks! and please let me know if i'm wrong about this!
kes
"Tu-Thach" wrote:

> You set the index like this:
> dropdown.SelectedIndex = 0; // or whatever value you want 1,2,3.
> "Kurt Schroeder" wrote:
> > I'm getting there!!!!
> > I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
> > to create my dropdown list from a database. The DDL gets populated! The
> > artical says, "then set the index as you normally would". Well, what can i
> > say i can't figure out how to set it.
> > any ideas would be great!
> > thanks
> > kes
How did you get a hold of the DropDownList? Did you use the FindControl
method?

"Kurt Schroeder" wrote:

> thanks for answering.
> that will not work because the dropdown list is a child control of the
> datagrid. I tried it and i gives me a run time error. even afteri manuelly
> decoarred it a protected with events...
> but thanks! and please let me know if i'm wrong about this!
> kes
> "Tu-Thach" wrote:
> > You set the index like this:
> > dropdown.SelectedIndex = 0; // or whatever value you want 1,2,3.
> > "Kurt Schroeder" wrote:
> > > I'm getting there!!!!
> > > I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
> > > to create my dropdown list from a database. The DDL gets populated! The
> > > artical says, "then set the index as you normally would". Well, what can i
> > > say i can't figure out how to set it.
> > > any ideas would be great!
> > > thanks
> > > kes
i have it figured out now, thanks.
kes

"Tu-Thach" wrote:

> How did you get a hold of the DropDownList? Did you use the FindControl
> method?
> "Kurt Schroeder" wrote:
> > thanks for answering.
> > that will not work because the dropdown list is a child control of the
> > datagrid. I tried it and i gives me a run time error. even afteri manuelly
> > decoarred it a protected with events...
> > but thanks! and please let me know if i'm wrong about this!
> > kes
> > "Tu-Thach" wrote:
> > > You set the index like this:
> > > > dropdown.SelectedIndex = 0; // or whatever value you want 1,2,3.
> > > > "Kurt Schroeder" wrote:
> > > > > I'm getting there!!!!
> > > > I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
> > > > to create my dropdown list from a database. The DDL gets populated! The
> > > > artical says, "then set the index as you normally would". Well, what can i
> > > > say i can't figure out how to set it.
> > > > any ideas would be great!
> > > > thanks
> > > > kes

Friday, March 16, 2012

On a dropdown, when you type letter it helpfully selects relateditem. How can I slow the t

On my dropdown, if I type it automatically goes to a related item that
matches what I type - so long as whatever I type takes less then one
second.

How can I extend this timeout ?

(I have slow typing users)

many many thanks and 10 free internets to whoever posts the correct
answer = )

Regards,
HamstersHi,

Do you mean that "feature" of the DropDownList that goes to the first
item matching the first letter typed?

Or the type extender from the AjaxControlToolKit?

If you're refering to the standard DDL, I think that the only way to
change this time would be editing the registry.

However if you're using the extender you'd need to change the code of
the extender.

I have not used the extender yet, so I can't give you a more precise
information about it. I'll check it over the weekend and I can get bat
at ya.

Regards,

Paulo Santos
http://pjondevelopment.50webs.com
On Nov 22, 3:31 pm, anonymoushamster <anonymoushams...@.gmail.com>
wrote:

Quote:

Originally Posted by

On my dropdown, if I type it automatically goes to a related item that
matches what I type - so long as whatever I type takes less then one
second.
>
How can I extend this timeout ?
>
(I have slow typing users)
>
many many thanks and 10 free internets to whoever posts the correct
answer = )
>
Regards,
Hamsters

On a dropdown, when you type letter it helpfully selects related

On my dropdown, if I type it automatically goes to a related item that
matches what I type - so long as whatever I type takes less then one
second.
How can I extend this timeout ?
(I have slow typing users)
many many thanks and 10 free internets to whoever posts the correct
answer = )
Regards,
HamstersHi,
Do you mean that "feature" of the DropDownList that goes to the first
item matching the first letter typed?
Or the type extender from the AjaxControlToolKit?
If you're refering to the standard DDL, I think that the only way to
change this time would be editing the registry.
However if you're using the extender you'd need to change the code of
the extender.
I have not used the extender yet, so I can't give you a more precise
information about it. I'll check it over the wend and I can get bat
at ya.
Regards,
Paulo Santos
http://pjondevelopment.50webs.com
On Nov 22, 3:31 pm, anonymoushamster <anonymoushams...@.gmail.com>
wrote:
> On my dropdown, if I type it automatically goes to a related item that
> matches what I type - so long as whatever I type takes less then one
> second.
> How can I extend this timeout ?
> (I have slow typing users)
> many many thanks and 10 free internets to whoever posts the correct
> answer = )
> Regards,
> Hamsters

On click of check box + Dropdown list

Hey guys

I have Table in which on click of "checkbox" Dropdown list should open

By default dropdownlist is false

Can anyone send me code...

what does "dropdownlist is false" mean. Is the dropdownlist on the page? is it invisible? is it enabled? does it have values?

provide some more information if you want to get an answer.

hth,

mcm


Please explain as the above person is asking.

Else if you dropdown is visible false do:

if(checkbox1.checked)

{

dropdownlist.visible = true;

}



hey i got my answer my question was like if dropdown list is enable what will be code on click on "chekbox".. but i got my ans... :)