Reducing code and Expanding Vertically

5 posts, 0 answers
  1. Relative
    Relative avatar
    31 posts
    Member since:
    May 2004

    Posted 28 Oct 2008 Link to this post

    I am using RadMenu loaded dynamically if a user is in FF2 or lower or any IE version. None of these browsers can deal with my pure CSS hover based menu which works perfectly in a decent browser. The RadMenu is adding a huge 500k to my page.

    Once the menu is loaded (and it loads ok with since the Q2 build fixed the locking up on first load / postback) performance in ok in FF2 and just about acceptable in IE. 

    What I would like to do is make sure that after the menu is loaded for the first time the browsers are caching as much as possible. There is very little in the help and online about optimising RadMenu apart from using web service and turning off viewstate.

    The html for the menu is ugly, but I know we are stuck with that, all the javascript that gets rendered at the bottom of the page that drives the menu - how can I make sure that is cached on the browser?

    I am not using any funky animation - just show and hide. Can I stop these files from being loaded if I don't need them?



    Increase size of menu item vertically

    In my CSS menu if the item text is wider than the standard width of the menu item then the text goes down to another line and the menu item expands vertically. With my RadMenu the text breaks out of the menu item horizontally. Yes, I could trim the item text but that is no good. How can i get the menu item to expand vertically to fix in longer menu items text?

    Thanks,

    Leon.

  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 29 Oct 2008 Link to this post

    Hello Leon,

    Please, view the help topic on how to Use RadMenu in a user control with OutputCache enabled and let us know if you can use this approach to optimize RadMenu.


    Kind regards,
    Peter
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Relative
    Relative avatar
    31 posts
    Member since:
    May 2004

    Posted 29 Oct 2008 Link to this post

    Hi,

    Already doing that - it isn't processing times that I need to improve, just the amount of generated code.

    thanks,

    Leon.
  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 29 Oct 2008 Link to this post

    Hello Leon,

    Have you set EnabledEmabeddedSkins="false" for RadMenu? Please, see this help topic:
    http://www.telerik.com/help/aspnet-ajax/modifyingexistingskins.html

    Other than that, you cannnot reduce the amount of generated html.


    Regards,
    Peter
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Relative
    Relative avatar
    31 posts
    Member since:
    May 2004

    Posted 29 Oct 2008 Link to this post

    Hi,

    Yes, as I am using my own skin.

    OK, thanks i will have to find an alterntive, maybe a cut down suckerfish instead.

    Leon.
Back to Top