All Products
Demos
Pricing
Services
Blogs
Docs & Support
Search
Shopping cart
Login
Contact Us
Get A Free Trial
close mobile menu
Telerik Forums
/
UI for ASP.NET AJAX Forum
/
ToolBar
/
Shouldn't NavigateUrl override postback's?
Cancel
Telerik UI for ASP.NET AJAX
Resources
Buy
Try
Feed for this thread
3 posts, 1 answers
Mink
57 posts
Member since:
Apr 2009
Posted 23 Apr 2009
Link to this post
Hi,
I have a 'save' RadToolBarButton and a 'cancel' RadToolBarButton in my RadToolBar.
The 'save' button I want to handle server-side with the event handler defined in the 'onbuttonclick' property of the RadToolBar.
This works perfectly.
However, for the 'cancel' button I don't want a Postback.
In the Page_Load event handler I have (dynamically) defined a NavigateUrl for the 'cancel' button (depending on from where the user comes on the page).
If I'm not mistaken having the NavigateUrl property set should prevent a Postback from happening for the 'cancel' button.
Unfortunately this doesn't work.
A Postback still happens and the user is not brought to the page defined by the NavigateUrl.
Could someone please tell me whether this is a glitch in the RadToolBar or that I'm doing something wrong? In either case I'd like to know how to solve this problem.
Answer
Atanas Korchev
Admin
8462 posts
Posted 23 Apr 2009
Link to this post
Hi Mink,
Please try setting the PostBack property of the cancel button to false.
Sincerely yours,
Albert
the Telerik team
Instantly find answers to your questions on the new
Telerik Support Portal
.
Check out the tips
for optimizing your support resource searches.
Mink
57 posts
Member since:
Apr 2009
Posted 23 Apr 2009
Link to this post
Yeah great, that works!
Don't know why I didn't think of it myself.
Thanks, also for the very speedy reply.
Back to Top
Close