RadAsyncUpload and selected file

2 posts, 0 answers
  1. Markús
    Markús avatar
    3 posts
    Member since:
    Nov 2010

    Posted 13 Oct 2014 Link to this post

    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
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 16 Oct 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top