Cancel Button

2 posts, 0 answers
  1. Ovidiu
    Ovidiu avatar
    4 posts
    Member since:
    Jul 2012

    Posted 16 Aug 2012 Link to this post

    Hi all

    I want to do something at "Cancel" button (e.g. close the browser window) after everything it's uploaded.
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 21 Aug 2012 Link to this post

    Hi Ovidiu,

    The RadUpload control exposes a DelegateCommand which is executed when the Cancel button is clicked. This means that you can define a custom execution method for the command thus customizing the default Cancel button behavior:
    <telerik:RadUpload x:Name="xRadUpload"
    public partial class MainPage : UserControl
        public MainPage()
            xRadUpload.CancelCommand = new DelegateCommand((p) => CustomCancelCommand());
        private void CustomCancelCommand()
            if (!this.isUploadFinished)
        bool isUploadFinished;
        private void xRadUpload_UploadFinished(object sender, System.Windows.RoutedEventArgs e)
            this.isUploadFinished = true;

    Please give this a try and let me know if it helps or if we can further assist you.

    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top