Two extra input fields for event "onClientFileUploaded" ?

3 posts, 0 answers
  1. Ralf
    Ralf avatar
    3 posts
    Member since:
    Dec 2014

    Posted 23 Sep 2015 Link to this post

    Hello,

    there are nice and proper examples for adding an extra input field for each upload of a file in the onClientFileUploaded event.
    Like here: http://demos.telerik.com/aspnet-ajax/asyncupload/examples/additionalfields/defaultcs.aspx

    But how do i add a second ?

    Tried this but failed with a jQuery error :(

    function onClientFileUploaded(radAsyncUpload, args) {
                var $row = $(args.get_row());
                var inputName = radAsyncUpload.getAdditionalFieldID("TextBox");
                var inputID = inputName;
                var input = createInput(inputID, inputName);
                var label = createLabel(inputID);
                    
                $row.append("<br/>");
                $row.append(label);
                $row.append(input);

                var $row2 = $(args.get_row());
                var inputName2 = radAsyncUpload.getAdditionalFieldID("SelectBox");
                var inputID2 = inputName2;
                var input2 = createDocTypeInput(inputID2, inputName2);
                $row2.append("<br/>");
                $row2.append(label)
                $row2.append(input2);
            }

    Any help is highly appreciated.

     

  2. Ralf
    Ralf avatar
    3 posts
    Member since:
    Dec 2014

    Posted 23 Sep 2015 in reply to Ralf Link to this post

    Never mind. Had a error in another javascript method which caused a cascade of errors and this not to work properly.

     @Admin: feel free to delete this thread :)

     

    BR,

     Ralf

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ivan Danchev
    Admin
    Ivan Danchev avatar
    833 posts

    Posted 24 Sep 2015 Link to this post

    Hello Ralf,

    Thank you for getting back to us. I am glad the issue was not in the RadAsyncUpload control.

    Regards,
    Ivan Danchev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top