Binding RadMenu to SiteMapDataSource and using Postback

1 posts, 1 answers
  1. Answer
    Telerik Admin
    Telerik Admin avatar
    1679 posts
    Member since:
    Oct 2004

    Posted 17 Jan 2008 Link to this post


    RadMenu version

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

    .NET version


    Visual Studio version


    programming language


    browser support

    all browsers supported by RadControls


    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