This is a migrated thread and some comments may be shown as answers.

RadAsyncUpload and selected file

1 Answer 101 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Markús
Top achievements
Rank 1
Markús asked on 13 Oct 2014, 04:13 PM
Hi,

Is there a good way of implementing a way of selecting one of the uploaded files (e.g. with radio button) that an action will be performed on?
Optimally I would like to see it in the the list of files, for example in front of the file names.

Currently I am doing this by filling a RadCombobox box with the list of file names, but the UI is somewhat cluttered and not very transparent.

Thanks,
Markús

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 16 Oct 2014, 12:38 PM
Hello Markús,

Please use the following code snippet in order to implement such scenario.
//markup code
<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" OnClientFileSelected="OnClientFileSelected">
    </telerik:RadAsyncUpload>
//JavaScript
function OnClientFileSelected(sender, args) {
     var currentrow = args.get_row();
     $telerik.$(currentrow).prepend('<input type="radio" name="name" value="value">');
 }


Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
AsyncUpload
Asked by
Markús
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or