DropDownExtender hover RRS feed

  • Question

  • User-125499312 posted

    I would like to have my dropdownextender in Hover mode (when you mouse over, it looks like a real drop down).

    Would you know how to do this?


    Wednesday, June 11, 2008 8:22 PM

All replies

  • User923504599 posted

    I don't have the exact code, but you should be able to override the default animation for OnHide and OnShow to just always have it visible.  Refer to the DropDown Sample (the Properties section), Using Animations, and the Animation Reference.

     Hope this helps,


    Wednesday, June 11, 2008 8:42 PM
  • User-125499312 posted

    There is nothing in the properties that would allow for this.

    It is not an animation.

    I just want the DropDownExtender to appear as a reqular drop down list.

    Can you help me ????


    Wednesday, June 11, 2008 10:20 PM
  • User923504599 posted

    Look about half way down on this post: http://forums.asp.net/p/1201162/2161341.aspx



    Thursday, June 12, 2008 1:12 PM
  • User923504599 posted

    I added a blog post that has the full solution, you can find it here: http://blogs.visoftinc.com/archive/2008/06/12/AJAX-Control-Toolkit-DropDownExtender-Always-Visible.aspx


    Thursday, June 12, 2008 1:17 PM
  • User-125499312 posted

    Hi Damien,

    Thanks for responding writing a blog post.

    I am trying out the code - but I am getting a javascript error message:

    'Sys' is undefined.


    Friday, June 13, 2008 11:18 AM
  • User923504599 posted

    Did you copy the code exactly?  It worked fine for me with that code.  Are you missing a ScriptManager reference?


    Friday, June 13, 2008 12:57 PM
  • User-125499312 posted

    Hi Damien,

    I do have a scriptmanager reference.

    here is my code:

    Dim strJS As String = "" 

    'other Javascript stuff that already works......... 

    strJS += "function " + Me.ClientID.ToString + "_pageLoad() { "
    strJS += "$find('" + Me.ddeDDLAvailableTables.BehaviorID + "').unhover = doNothing; "
    strJS += "$find('" + Me.ddeDDLAvailableTables.BehaviorID + "')._dropWrapperHoverBehavior_onhover(); "
    strJS += "}"
    strJS += "function doNothing() {} "

    strJS += "Sys.Application.add_load(" + Me.ClientID.ToString + "_pageLoad); "

    If (Page.ClientScript.IsClientScriptBlockRegistered(strJSName) = False) Then
            ScriptManager.RegisterClientScriptBlock(Page, GetType(DDLAvailableTables), strJSName, strJS, True)
    End If

    The DropDownExtender is in a usercontrol.

    Thanks for helping 

    Friday, June 13, 2008 3:19 PM
  • User923504599 posted

    If you look at the code, it's using the ID of the DropDownExtender:

        function DropDownExtender1_pageLoad()
          $find('DropDownExtender1').unhover = doNothing;
        function doNothing() {}


    And here's tht extender:        
    <cc1:dropdownextender id="DropDownExtender1" TargetControlID="Label1"
    DropDownControlID="DropPanel1" runat="server">

    Notice it isn't the BehaviorID.

    Hope this helps,

    Monday, September 8, 2008 8:52 AM