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

Two extra input fields for event "onClientFileUploaded" ?

2 Answers 16 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Ralf
Top achievements
Rank 1
Ralf asked on 23 Sep 2015, 11:43 AM

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 Answers, 1 is accepted

Sort by
0
Ralf
Top achievements
Rank 1
answered on 23 Sep 2015, 12:25 PM

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

0
Ivan Danchev
Telerik team
answered on 24 Sep 2015, 10:08 AM
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
Tags
AsyncUpload
Asked by
Ralf
Top achievements
Rank 1
Answers by
Ralf
Top achievements
Rank 1
Ivan Danchev
Telerik team
Share this question
or