I want to do something at "Cancel" button (e.g. close the browser window) after everything it's uploaded.
Thanks
1 Answer, 1 is accepted
0
Tina Stancheva
Telerik team
answered on 21 Aug 2012, 11:55 AM
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"
TargetFolder="UserUploads"
UploadServiceUrl="/UserUploadHandler.ashx"
UploadFinished="xRadUpload_UploadFinished"/>
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
xRadUpload.CancelCommand = new DelegateCommand((p) => CustomCancelCommand());