5 Answers, 1 is accepted
0
Hi Aarsh,
Drag and Drop zones could be set with javascript as use the RadAsyncUpload's client API:
However the Drag and Drop functionality relies on the HTML5 File API and Drag-And-Drop modules, which means that it works in modern browsers only:
Regards,
Hristo Valyavicharski
Telerik
Drag and Drop zones could be set with javascript as use the RadAsyncUpload's client API:
var upload = $find('RadAsyncUpload1');
upload.set_dropZones('.DropZone1,#DropZone2');
However the Drag and Drop functionality relies on the HTML5 File API and Drag-And-Drop modules, which means that it works in modern browsers only:
Firefox 4+, Google Chrome, IE10+, Safari 5+.
Hristo Valyavicharski
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Aarsh
Top achievements
Rank 1
answered on 05 Aug 2013, 02:19 PM
Thank you, Hristo. I understand that it's HTML5 specific feature and thanks for pointing out my attention.
Thanks again,
-Aarsh
Thanks again,
-Aarsh
0
Nimish
Top achievements
Rank 1
answered on 22 Mar 2014, 10:01 PM
Hello to everyone ,
I also need somewhat modification in "telerik:RadAsyncUpload" functinality with drag and drop , I am using this one link
http://demos.telerik.com/aspnet-ajax/asyncupload/examples/draganddrop/defaultcs.aspx
but i want my uploaded files to be in drag and drop area . not on the top of select button , Can any one help on this . I have attached mage also for demo
I also need somewhat modification in "telerik:RadAsyncUpload" functinality with drag and drop , I am using this one link
http://demos.telerik.com/aspnet-ajax/asyncupload/examples/draganddrop/defaultcs.aspx
but i want my uploaded files to be in drag and drop area . not on the top of select button , Can any one help on this . I have attached mage also for demo
0
Hi Nimish,
First you will have to hide the default file list. The following css will do that:
To add the uploaded files to the drop zone, handle OnClientFileUploaded event of the AsyncUpload and append the name of the uploaded file to the html element of the drop zone.
Regards,
Hristo Valyavicharski
Telerik
First you will have to hide the default file list. The following css will do that:
.ruInputs li:not(:last-child)
{
display
:
none
;
}
li.ruUploading
{
display
:
none
;
}
To add the uploaded files to the drop zone, handle OnClientFileUploaded event of the AsyncUpload and append the name of the uploaded file to the html element of the drop zone.
Regards,
Hristo Valyavicharski
Telerik
Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.
0
Andre Light
Top achievements
Rank 1
answered on 18 May 2015, 02:26 PM
Note that set_dropZones is not currently working as one might expect. In order to set drop zones dynamically on the client, you must call a hidden function to initialize the drop zones (Nencho at Telerik provided this workaround):
function
AppLoaded() {
var
async = $find(
"<%= RadAsyncUpload1.ClientID%>"
);
async.set_dropZones(
"#dropZone1,.otherDropZones"
);
async._uploadModule._handleCustomDropZones();
}
Sys.Application.add_load(AppLoaded);
Thank you, Nencho.