Dynamic XML DataBiding for RadMenu

Thread is closed for posting
1 posts, 0 answers
  1. 1DE7C86E-CF52-4BA0-9E6E-5A618F47A042
    1DE7C86E-CF52-4BA0-9E6E-5A618F47A042 avatar
    7 posts
    Member since:
    Feb 2010

    Posted 08 Jun 2010 Link to this post

    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.


Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.