Slow Loading HoverMenu

Last post 03-28-2007 6:10 PM by David Anson. 7 replies.

Sort Posts:

  • Slow Loading HoverMenu

    04-20-2006, 7:30 PM
    • Member
      20 point Member
    • mikebehrend
    • Member since 04-20-2006, 11:20 PM
    • Posts 4
    I am experiencing some slow performance with the HoverMenuExtender.  I have about 200 records to display on a page (no paging).  I am trying to display a small peice of the record info on the page and show more record info in the HoverMenu.  I am using the same databinding technique as the toolkit download: gridView with template column and databouind controls.

    The page loads showing all of the data including the hover panel.  After a several (10) seconds, the hover panels disappear and the page is displayed in the expected manner.

    Is this a limitation of the JavaScript or can I optimize this somehow?

    Thanks
    -mike
  • Re: Slow Loading HoverMenu

    04-20-2006, 10:08 PM
    • Contributor
      4,346 point Contributor
    • sburke_msft
    • Member since 04-04-2006, 7:28 PM
    • Redmond, WA
    • Posts 770
    • AspNetTeam

    In your web.config, try it with <compilation debug="false"/> and it will probably be much faster.

    But what you're seeing is the time between when the page loads to when all the behaviors get hooked up.  Obviously, if you've got a lot of them, this takes a little longer.

    What you're missing is the style that's set on the HoverMenu example.  By making sure the Hover panels are initially invisible, you don't have to wait for the HoverMenu to hide it.

    /*Hover Menu*/
    .popupMenu {
     position:absolute;
     visibility:hidden; 
     background-image:url(images/header.png);
     opacity:.9;
     filter: alpha(opacity=90);
    }

    So on your hover panel, you can just add the style inline:

    <asp:Panel id="HoverPanel" style="visibility:hidden;" ... >

    Don't forget, this posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Slow Loading HoverMenu

    04-21-2006, 3:37 AM
    • Member
      135 point Member
    • Qty
    • Member since 09-22-2005, 11:04 AM
    • Netherlands
    • Posts 27

    We have altered to script code to work with display:none & display:block.

    Add display:none to your css and add a line

    // we'll need this later anyway.
    //
    var popupElement = document.getElementById(_popupControlID);
    popupElement.style.displayMode =
    'block';

    That should hide the menu's completely.

    // Ryan
  • Re: Slow Loading HoverMenu

    04-21-2006, 11:49 AM
    • Member
      20 point Member
    • mikebehrend
    • Member since 04-20-2006, 11:20 PM
    • Posts 4
    Ok.  That makes sense.  Thank you for the help.

    -Mike
  • Re: Slow Loading HoverMenu

    09-14-2006, 10:26 AM
    • Member
      635 point Member
    • Inventisity
    • Member since 03-02-2006, 1:48 PM
    • Posts 129

    I have the same problem. You could make all the hover menu disappear initially like the way you want it to, but it still require additional processing to be done.

     Is using the menu Hover Extender the ideal solution?
     

  • Re: Slow Loading HoverMenu

    03-23-2007, 12:47 PM
    • Member
      4 point Member
    • RonSchultz
    • Member since 03-21-2007, 2:55 PM
    • Posts 2

    I have GridView w/ 15 columns and 2 hovermenuextenders and about 250 rows of data to display.  I have an update panel and and a timer control to update the data every 50 sec.  It is so slow, that it takes 20+ seconds to update..

    Is there any way to make faster / less sluggish response in loading (binding) the hovermenus ?

    Thanks,

    RonS

  • Re: Slow Loading HoverMenu

    03-23-2007, 12:49 PM
    • Member
      4 point Member
    • RonSchultz
    • Member since 03-21-2007, 2:55 PM
    • Posts 2

    I have GridView w/ 15 columns and 2 hovermenuextenders and about 250 rows of data to display.  I have an update panel and and a timer control to update the data every 50 sec.  It is so slow, that it takes 20+ seconds to update..

    Is there any way to make faster / less sluggish response in loading (binding) the hovermenus ?

    Thanks,

    RonS

  • Re: Slow Loading HoverMenu

    03-28-2007, 6:10 PM
    • Star
      8,710 point Star
    • David Anson
    • Member since 04-10-2006, 9:39 PM
    • Microsoft
    • Posts 1,842
    If you can find a way to have one or more of the HoverMenus be shared (perhaps by redirecting click events from "dummy" buttons to the HoverMenu's TargetControlID), that may help in reducing their impact.

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (8 items)
Microsoft Communities