Is there a way to make the DropDownExtender's box always visible?
Having a label that you mouse over to see the arrow and box appear is not intuitive AT ALL. No one would ever know just by looking at the page that there is some form of functionality to it.
I want the box around the text and the drop down arrow to always be visible, not just when someone mouses over it. The functionality of DropDownExtender is ass backwards.... It only displays the box and arrow when you hover over the text, how is anyone
supposed to know that there is functionality there?
My current work around was copying all the HTML generated by the DropDownExtender which is displayed during hover and placed it around the ASP.NET label, but that is the wrong way to go about doing it....
DropDownExtender should have a DisplayMode = Hover or Always... not for the panel or control it displays when clicked, but for indication that there is something to click on.
This functionality I cannot find, whether I look through the code or the documentation or these forums....
Here's a script workaround. In my case I only display the overlay when the control has focus, but you could call the hover at pageLoad and again after unhover if you want to make the dropdown overlay always visible.
Is there a workaround to make the arrow always visible but not the arrow highlight color? Or at least add an identical arrow to the label in the exact position as the hover arrow?
Make sure you emit the behavior ID from the server - that way it will work if your control is inside any type of naming container, master page etc. If you hardcode it in client side code you need to take care to handle any container name prefixes.
in this post of yours you say something about using a dropdown control instead of a label for the driopdownextender control.
I was wandering how you get the text to display in the dropdown? which property you use for the text of the selection to be displayed as the selection that was made..
Also have you found a way for the dropdown to look exactly like the extender looks like when hovered? I mean the same css ans style because I only get the default style of the dropdown o display
dguisinger
Member
20 Points
18 Posts
How to make DropDownExtender box and arrow always visible
Jan 04, 2008 06:04 PM|LINK
Is there a way to make the DropDownExtender's box always visible?
Having a label that you mouse over to see the arrow and box appear is not intuitive AT ALL. No one would ever know just by looking at the page that there is some form of functionality to it.
Jin-Yu Yin -...
All-Star
21280 Points
1824 Posts
Re: How to make DropDownExtender box and arrow always visible
Jan 10, 2008 11:48 AM|LINK
Hi,
Thank you for your post!
I think that if you want keep it always visible, you should not use DropDownExtender.
I suggest you use AlwaysVisibleControl
Best Regards,
Jin-Yu Yin
Microsoft Online Community Support
dguisinger
Member
20 Points
18 Posts
Re: How to make DropDownExtender box and arrow always visible
Jan 17, 2008 08:38 PM|LINK
I think you misunderstood the question.
I want the box around the text and the drop down arrow to always be visible, not just when someone mouses over it. The functionality of DropDownExtender is ass backwards.... It only displays the box and arrow when you hover over the text, how is anyone supposed to know that there is functionality there?
My current work around was copying all the HTML generated by the DropDownExtender which is displayed during hover and placed it around the ASP.NET label, but that is the wrong way to go about doing it....
DropDownExtender should have a DisplayMode = Hover or Always... not for the panel or control it displays when clicked, but for indication that there is something to click on.
This functionality I cannot find, whether I look through the code or the documentation or these forums....
KristoferA
Member
691 Points
154 Posts
Re: How to make DropDownExtender box and arrow always visible
Feb 08, 2008 10:10 AM|LINK
Here's a script workaround. In my case I only display the overlay when the control has focus, but you could call the hover at pageLoad and again after unhover if you want to make the dropdown overlay always visible.
txtHedgingType.Attributes.Add("onfocus", "$find('" + ddeHedgingType.BehaviorID + "')._dropWrapperHoverBehavior_onhover();");
txtHedgingType.Attributes.Add("onblur", "$find('" + ddeHedgingType.BehaviorID + "')._dropWrapperHoverBehavior_onunhover();");
huagati.com/dbmltools - New features for EF and L2S in VS2010/8
huagati.com/L2SProfiler - Profiler
KristoferA
Member
691 Points
154 Posts
Re: How to make DropDownExtender box and arrow always visible
Feb 14, 2008 07:05 AM|LINK
...and if you want it to always show the dropdown overlay (not only when the extended control has focus) then this will do it:
function someControlID_pageLoad()
{
$find('someControlID_ddeDropdownExtender').unhover = doNothing;
$find('someControlID_ddeDropdownExtender')._dropWrapperHoverBehavior_onhover();
}
function doNothing() {}
Sys.Application.add_load(someControlID_pageLoad);
huagati.com/dbmltools - New features for EF and L2S in VS2010/8
huagati.com/L2SProfiler - Profiler
huracan
Member
4 Points
3 Posts
Re: How to make DropDownExtender box and arrow always visible
Feb 18, 2008 01:48 PM|LINK
you can also use a dropdownlist or html select with runat=server instead of a label. dropdown will always be visible.
caitny
Member
6 Points
22 Posts
Re: How to make DropDownExtender box and arrow always visible
Mar 31, 2008 08:43 PM|LINK
Is there a workaround to make the arrow always visible but not the arrow highlight color? Or at least add an identical arrow to the label in the exact position as the hover arrow?
vikram81
Member
2 Points
1 Post
Re: How to make DropDownExtender box and arrow always visible
Jul 29, 2008 08:18 PM|LINK
hi,
I am not able to make DropDownExtender always visible.I used the same line of code with just putting my control ids,nothing works..
Can you send me the code lines , just want to see where i miss.
Thanks,
Vicky.
KristoferA
Member
691 Points
154 Posts
Re: How to make DropDownExtender box and arrow always visible
Jul 31, 2008 04:57 AM|LINK
Make sure you emit the behavior ID from the server - that way it will work if your control is inside any type of naming container, master page etc. If you hardcode it in client side code you need to take care to handle any container name prefixes.
huagati.com/dbmltools - New features for EF and L2S in VS2010/8
huagati.com/L2SProfiler - Profiler
bcweed966
Member
261 Points
893 Posts
Re: How to make DropDownExtender box and arrow always visible
Aug 11, 2008 11:32 PM|LINK
in this post of yours you say something about using a dropdown control instead of a label for the driopdownextender control.
I was wandering how you get the text to display in the dropdown? which property you use for the text of the selection to be displayed as the selection that was made..
Also have you found a way for the dropdown to look exactly like the extender looks like when hovered? I mean the same css ans style because I only get the default style of the dropdown o display