Binding RadMenu to SiteMapDataSource and using Postback

Thread is closed for posting
1 posts, 1 answers
  1. Answer
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 17 Jan 2008 Link to this post


    Requirements

    RadMenu version

    RadMenu "classic" 4.4.x
    RadMenu AJAX (Prometheus)

    .NET version

    2.0

    Visual Studio version

    2005

    programming language

    C#

    browser support

    all browsers supported by RadControls


     
  2. PROJECT DESCRIPTION 

    If RadMenu is bound to a SiteMapDataSource, the NavigateUrl property of the items will be set. This effectively disables PostBacks (ItemClick event in particular) because the item navigates to the particular URL rather than posting back.

    One of the possible solutions is to subscribe to the ItemDataBound event and set the NavigateUrl property to an empty string. You should, however, store the NavigateUrl property somewhere (e.g. in the Value or Attributes[] properties) so you can use it later to navigate after handling ItemClick event.
  • Back to Top

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