New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

OnClientAdded

The OnClientAdded client-side event occurs when a new row has just been added to the RadAsyncUpload control.

This event occurs for the initial rows that are added when the RadAsyncUpload control is first loaded, as well as any rows automatically added after a file has been uploaded or after invocation of the client-side addFileInput() method.

The event handler receives two parameters:

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

  2. An eventArgs parameter containing the following methods:

  • get_row returns the row that was just added.

  • get_rowIndex returns the index of the row

Use the OnClientAdded event to perform any last minute changes to the rows in the RadAsyncUpload control.

<telerik:RadAsyncUpload RenderMode="Lightweight" runat="server" ID="RadAsyncUpload1" OnClientAdded="OnClientAdded"></telerik:RadAsyncUpload>
function OnClientAdded(sender, args) {
    var rowIndex = args.get_index();
    alert(rowIndex);
}
In this article