Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > Menu > Dynamic XML DataBiding for RadMenu

Not answered Dynamic XML DataBiding for RadMenu

Feed from this thread
  • Tim Rankel avatar

    Posted on Jun 8, 2010 (permalink)

    Requirements

    RadControls version

     

    RadControls_for_ASP.NET_AJAX_2010_1_519
    .NET version

     

    4.0
    Visual Studio version

     

    2010
    programming language

     

    C#
    browser support

    all browsers supported by RadControls


    PROJECT DESCRIPTION

    The RadMenu is placed in a master page and the menu is being created dynamically from xml that is the return parameter from a stored procedure call. Based on a record set from the DB every time a page is loaded the menu needs to be rebound with the data.  This allows users to have custom menus and menu items using the XMLdatasoucre and RadMenu. Because the XMLDataSource control in .Net has the enabled caching property set to true by default the menu will not refresh and display the new xml retrieved on the pageload.  To fix this set the (EnableCaching="False) property to false on the aspx page. This example does not use a db instead it uses xmlfiles in the app_data folder; however it makes  no difference if the results are returned from a sql db or any other data store the functionality remains the same.


    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > Menu > Dynamic XML DataBiding for RadMenu