Click to See Complete Forum and Search --> : Trying to display pre-dropped select control


rogerp
10-27-2003, 01:41 AM
Hi Guys,

Is there a way to display a select box so that it is already dropped 'open'? or, even better, is there a method on the select that will open it?

I have a situation where I do some work when I get activation on the control and sometimes this involves rerendering the page and refocusing on the control. When this is a select control the effect is the box drops open and then immediately closes.

Ideally there is a method I cannot find (I have looked!) which drops the select box open and I can call it when I set focus.

Any ideas?

Thanks for your help
Roger

Mr J
10-27-2003, 11:04 AM
Include size="n" in the opening select tag.

Where n = a number

rogerp
10-27-2003, 03:47 PM
Thanks. Your solution does open the text box. But it doesn't look the same as if it had been opened by clicking the drop button. Specifically the drop button vanishes. I used

control.size = control.length;

I really need something that causes the same behaviour. The user experience should not be different.

I have also tried sending an onclick event to the select but it doesn't seem to do anything