This is a migrated thread and some comments may be shown as answers.

Reducing code and Expanding Vertically

4 Answers 105 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Relative
Top achievements
Rank 1
Relative asked on 28 Oct 2008, 03:48 PM
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.

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 29 Oct 2008, 02:59 PM
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.
0
Relative
Top achievements
Rank 1
answered on 29 Oct 2008, 03:01 PM
Hi,

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

thanks,

Leon.
0
Peter
Telerik team
answered on 29 Oct 2008, 03:26 PM
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.
0
Relative
Top achievements
Rank 1
answered on 29 Oct 2008, 03:28 PM
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.
Tags
Menu
Asked by
Relative
Top achievements
Rank 1
Answers by
Peter
Telerik team
Relative
Top achievements
Rank 1
Share this question
or