Shouldn't NavigateUrl override postback's?

3 posts, 1 answers
  1. Mink
    Mink avatar
    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.


  2. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mink
    Mink avatar
    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