Edit this page

OnClientFileSelected

The OnClientFileSelected client-side event occurs when certain file has just been selected.

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_row returns the created row from the FileListPanel section (<LI> element)

  • get_fileName returns the name of the file selected

<telerik:RadCloudUpload runat="server" ID="RadCloudUpload1" OnClientFileSelected="onClientFilesSelected" ...>
</telerik:RadCloudUpload>
function onClientFilesSelected(sender, eventArgs) {
    var fileName = eventArgs.get_fileName();
    alert(fileName)
}