Binding RadMenu to SiteMapDataSource and using Postback
Cancel
The title field is required!
Thread is closed for posting
1
posts,
1
answers
-
Answer
63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
1572
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 |
2.0
|
Visual Studio version |
2005
|
programming language |
C#
|
browser support |
all browsers supported by RadControls
|
- 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.
-