New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnClientFileSelected
The OnClientFileSelected client-side event occurs when certain file has just been selected.
The event handler receives two parameters:
-
The instance of the RadCloudUpload control firing the event.
-
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
ASP.NET
<telerik:RadCloudUpload runat="server" ID="RadCloudUpload1" OnClientFileSelected="onClientFilesSelected" ...>
</telerik:RadCloudUpload>
JavaScript
function onClientFilesSelected(sender, eventArgs) {
var fileName = eventArgs.get_fileName();
alert(fileName)
}