New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

OnClientFilesSelecting

The OnClientFilesSelecting occurs when the files are just about to be processed.

The event handler receives two parameters:

  1. The instance of the RadCloudUpload control firing the event.

  2. An eventArgs parameter containing the following methods:

  • get_count returns the count of the selected files.

  • set_cancel lets you cancel the event and prevent items from being uploaded

ASP.NET
<telerik:RadCloudUpload runat="server" ID="RadCloudUpload1" OnClientFilesSelecting="onClientFilesSelecting" MultipleFileSelection="Automatic" ...>
</telerik:RadCloudUpload>
JavaScript
function onClientFilesSelecting(sender, eventArgs) {
	eventArgs.set_cancel(true);
}
Not finding the help you need?
Contact Support