PopupControlExtender to react on MouseOver instead of OnClick?

Last post 11-30-2007 2:33 AM by skowronek. 4 replies.

Sort Posts:

  • PopupControlExtender to react on MouseOver instead of OnClick?

    07-26-2007, 4:43 AM
    • Member
      2 point Member
    • BiancaFFM
    • Member since 07-26-2007, 8:37 AM
    • Posts 4

    Hi all,

    new to .NET and this forum at all and I want to ask, if (and how) it is possible to make a change in the behavior of the PopupControlExtender.
    I need to get the PopUps onMouseOver instead onClick - is there an easy way for this or does anybody know a little workaround?

    Thanks a lot in advance!

    Best regards,
    Bianca

  • Re: PopupControlExtender to react on MouseOver instead of OnClick?

    07-27-2007, 5:12 AM
    • Member
      2 point Member
    • BiancaFFM
    • Member since 07-26-2007, 8:37 AM
    • Posts 4

    ok, I found parts of a possible solution:

    <asp:Label [....] onMouseOver="this.click();" onMouseOut="AjaxControlToolkit.PopupControlBehavior.__VisiblePopup.hidePopup(); return false;"></asp:Label>

    This works fine in IE, but FF does ignore the event "this.click();" and just brings back the errormessage "this.click() is not a function"

    Any ideas?
    B.

     

     

  • Re: PopupControlExtender to react on MouseOver instead of OnClick?

    07-29-2007, 11:56 PM

     Hi,

    Please try this approach:
            <ajaxToolkit:PopupControlExtender ID="PopupControlExtender2" runat="server" BehaviorID="pce" ............... />

    <asp:Label [....] onMouseOver="$find('pce').showPopup();" onMouseOut="$find('pce').hidePopup();"

     

    Hope this helps. 

  • Re: PopupControlExtender to react on MouseOver instead of OnClick?

    07-30-2007, 5:05 AM
    • Member
      2 point Member
    • BiancaFFM
    • Member since 07-26-2007, 8:37 AM
    • Posts 4

    Raymond, thanks a lot, this helps.
    I just have to make some adjustments to make it work e.g. within a datalist, where it can have more than one popup from a single PCE.

    Thanks again!

    Bianca

  • Re: PopupControlExtender to react on MouseOver instead of OnClick?

    11-30-2007, 2:33 AM
    • Member
      2 point Member
    • skowronek
    • Member since 11-30-2007, 2:31 AM
    • Posts 1

     There is actually a much more robust method to doing this on the 4guys site:

     

    http://aspnet.4guysfromrolla.com/articles/071107-1.aspx 

Page 1 of 1 (5 items)