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

AsyncUpload with multiple files

4 Answers 72 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
raghu
Top achievements
Rank 1
raghu asked on 15 Mar 2015, 02:37 PM
I wanted to use asyncupload control with multiple files uploading. I wanted to bind meta data for each file before uploading. I should be able to bind text box and a drop down list on each row apart from the file name and remove link. Can you please provide best solution with sample code ?

4 Answers, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 18 Mar 2015, 08:52 AM
Hi,

Please look at this sample AsyncUpload - Additional Fields, it is close to your requirements.

Regards,
Hristo Valyavicharski
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.

 
0
Mujtaba
Top achievements
Rank 1
answered on 08 Apr 2015, 08:32 AM
I been trying to use this asyncupload-additionfields but I have notice it doesn't work if I set session state to SQL SERVER, I think its this control save uploaded files to session is there any fix done yet for this issue.
0
Hristo Valyavicharski
Telerik team
answered on 08 Apr 2015, 02:45 PM
Hi Mujtaba,

The Sql Server session state shouldn't be a problem. Look for a javascript errors.

Regards,
Hristo Valyavicharski
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
jarguello
Top achievements
Rank 1
answered on 01 Feb 2017, 07:18 AM

My post is related to this topic. I am dynamically creating additional fields based on your example in the Online Demo. However, here is my scenario:

I add 3 files. Each file has a label and input. If I "Remove" the second row (rowIndex = 2), the file is removed, but the label and input field is still displayed. I have not been successful removing the additional fields. 

I have attempted to use a variation of the old code provided in the RadUpload control:

var li = row.parentNode.parentNode;

var ul = input.parentNode.parentNode.parentNode;

etc., etc...

But, that does not work with the RadAsyncUpload control in javascript.

So, I have tried different things that revolve around "parentNode.removeChild()" or $(row.parent).remove() or var extraFields = row.parentNode.childNodes row.parentNode.removeChild(extraFields[i])  to no avail. Is there a simple way of completely deleting the custom controls / metadata, or, do I need to get the index and cycle through the collection and delete at the desired index? 

Any direction is greatly appreciated.

Tags
AsyncUpload
Asked by
raghu
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Mujtaba
Top achievements
Rank 1
jarguello
Top achievements
Rank 1
Share this question
or