How to make DropDownExtender box and arrow always visible

Last post 08-11-2008 7:32 PM by bcweed966. 9 replies.

Sort Posts:

  • How to make DropDownExtender box and arrow always visible

    01-04-2008, 2:04 PM
    • Member
      20 point Member
    • dguisinger
    • Member since 12-13-2007, 10:28 PM
    • Posts 18

    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.

  • Re: How to make DropDownExtender box and arrow always visible

    01-10-2008, 7:48 AM

    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,

    Sincerely,
    Jin-Yu Yin
    Microsoft Online Community Support
  • Re: How to make DropDownExtender box and arrow always visible

    01-17-2008, 4:38 PM
    • Member
      20 point Member
    • dguisinger
    • Member since 12-13-2007, 10:28 PM
    • Posts 18

    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....
     

  • Re: How to make DropDownExtender box and arrow always visible

    02-08-2008, 6:10 AM
    Answer
    • Member
      281 point Member
    • KristoferA
    • Member since 01-05-2008, 1:37 AM
    • Bangkok
    • Posts 97

    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();");

  • Re: How to make DropDownExtender box and arrow always visible

    02-14-2008, 3:05 AM
    • Member
      281 point Member
    • KristoferA
    • Member since 01-05-2008, 1:37 AM
    • Bangkok
    • Posts 97

    ...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);

  • Re: How to make DropDownExtender box and arrow always visible

    02-18-2008, 9:48 AM
    • Member
      4 point Member
    • huracan
    • Member since 02-18-2008, 2:44 PM
    • Posts 3

    you can also use a dropdownlist or html select with runat=server instead of a label. dropdown will always be visible.

  • Re: How to make DropDownExtender box and arrow always visible

    03-31-2008, 4:43 PM
    • Member
      4 point Member
    • caitny
    • Member since 07-19-2007, 7:12 PM
    • Posts 21

    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?

  • Re: How to make DropDownExtender box and arrow always visible

    07-29-2008, 4:18 PM
    • Member
      2 point Member
    • vikram81
    • Member since 07-29-2008, 8:15 PM
    • Posts 1

    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.

  • Re: How to make DropDownExtender box and arrow always visible

    07-31-2008, 12:57 AM
    • Member
      281 point Member
    • KristoferA
    • Member since 01-05-2008, 1:37 AM
    • Bangkok
    • Posts 97

    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.

  • Re: How to make DropDownExtender box and arrow always visible

    08-11-2008, 7:32 PM
    • Member
      113 point Member
    • bcweed966
    • Member since 11-26-2006, 9:40 PM
    • Posts 648

    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

Page 1 of 1 (10 items)