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

RadMenu Content Appearing as List

4 Answers 54 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 04 Dec 2009, 04:52 PM
Hello,

When the page loads and waits for images/JS scripts to load, I see a hierarchical bulleted list briefly, then it disappears when the menu bar script runs to format the menus correctly.  Can I apply an HTML attribute to each item or to the menu to hide initially to handle this?  Some users have made comments about it.

Thanks.

4 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 07 Dec 2009, 08:56 AM
Hi Brian Mains,

Have you registered the required CSS files in the <head /> tag of our application? If yes this problem should not be occurring as the browser downloads the CSS files in the <head /> tag before displaying the rest of the document. Also the menu appearance is not initialized or tweaked with JavaScript code - it relies on CSS only.

Is there any live url where we can observe this behavior?

Regards,
Atanas Korchev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Brian Mains
Top achievements
Rank 1
answered on 07 Dec 2009, 04:08 PM
Hello,

I use the Stylesheet registrar to register the CSS file; it's at the bottom of the master page.  Isn't it recommended to have this at the bottom, so that each component can register itself with these registrars?  Or is there an alternative approach?

Thanks.
0
Atanas Korchev
Telerik team
answered on 08 Dec 2009, 08:49 AM
Hi Brian Mains,

 It is the ScriptRegistrar that should be put at the bottom of the page. This is mandatory so components can register with it. Unfortunately the case with StyleSheetRegistrar is a different story. All <link /> tags must be placed in the <head /> tag for XHTML compliance. This is also required to avoid issues as seeing unstyled content until all CSS files are downloaded and applied. That's why the StyleSheetRegistrar should be put in the <head /> of the page - valid HTML and the browser will download the CSS files first. This however requires the user to manually register all CSS files required by the UI components. Since the StyleSheetRegistrar appears first in the page it is rendered first as well - there is no way for the components to register with the StyleSheetRegistrar.


I hope this helps,
Atanas Korchev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Brian Mains
Top achievements
Rank 1
answered on 09 Dec 2009, 02:54 AM
Hello,

That does make sense.

Thanks.
Tags
Menu
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Brian Mains
Top achievements
Rank 1
Share this question
or