This is a migrated thread and some comments may be shown as answers.

Shouldn't NavigateUrl override postback's?

2 Answers 69 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Mink
Top achievements
Rank 1
Mink asked on 23 Apr 2009, 02:57 PM
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.


2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 23 Apr 2009, 03:10 PM
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.
0
Mink
Top achievements
Rank 1
answered on 23 Apr 2009, 03:17 PM
Yeah great, that works!
Don't know why I didn't think of it myself.

Thanks, also for the very speedy reply.
Tags
ToolBar
Asked by
Mink
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Mink
Top achievements
Rank 1
Share this question
or