Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Menu > XML File Flashes on screen when loading Menu

Not answered XML File Flashes on screen when loading Menu

Feed from this thread
  • Russ avatar

    Posted on Feb 3, 2012 (permalink)


    I'm loading the ASP.NET RadMenu from a static XML file on Page_Load event like so.

    if (!IsPostBack)  {
        RadMenu1.LoadContentFile("~/Menu/MainMenu.xml"); }

    I frequently can see a flash of the entire XML file (50+ items in it) while the page is loading. 

    Are there any stratgies to avoid this problem?

    Thanks,
    Russ
    
    				

    Reply

  • Russ avatar

    Posted on Feb 7, 2012 (permalink)

    Nobody?

    Reply

  • Kate Kate admin's avatar

    Posted on Feb 8, 2012 (permalink)

    Hi Russ,

    Can you clarify what exactly you mean by saying I frequently can see a flash of the entire XML file - is it that the RadMenu itself flashes or the xml file? Assuming it is the menu control you can try using the following code that initially hides the menu and when the page loads the menu's visibility is restored:
    <script type="text/javascript">
            function OnClientLoad(sender, args) {
                setTimeout(function () { sender.get_element().style.visibility = "visible"; }, 1);
            }
        </script>
     
        <telerik:RadMenu ID="RadMenu1" runat="server" OnClientLoad="OnClientLoad" Style="visibility:hidden">
        </telerik:RadMenu>

    Kind regards,
    Kate
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

  • Russ avatar

    Posted on Feb 9, 2012 (permalink)

    See attachment for what I see for a split second when I'm loading pages.  We are talking a 1/4 second or so.  I was able to get a screen shot after several attempts.  I don't see the raw XML, but formatted data that is to be loaded in the menu.

    I will attempt your fix and let you know how it goes.
    Thx.
    Russ

    Attached files

    Reply

  • Kate Kate admin's avatar

    Posted on Feb 15, 2012 (permalink)

    Hello Russ,

    Take you time for testing. If you still encounter the issue (after trying the suggested approach), however,  I would suggest that you open a support ticket and attach a simplified runnable project that we could test locally and help you out. 

    Greetings,
    Kate
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Menu > XML File Flashes on screen when loading Menu
Related resources for "XML File Flashes on screen when loading Menu"

[  ASP.NET Menu Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]