Completed
Last Updated: 20 Feb 2022 20:11 by ADMIN
David
Created on: 17 Feb 2022 22:28
Category: UI for Blazor
Type: Feature Request
1
Create a drag and drop component. Or a dropzone component.

Create a general purpose component to allow dragging and dropping of other components or files from the filesystem. Expose events that let us get access to the files that were dropped so that we can access the contents of those files or send them off to be uploaded.

Currently in Blazor we can do this with the InputFile component. But I would like the ability to create a droppable UI and have any kind of child content in it. And also get at the file content of files dropped.

1 comment
ADMIN
Marin Bratanov
Posted on: 20 Feb 2022 20:11

Hello David,

We already have two different file upload components:

With both of these you can drag a file over the "Select Files..." button to have it uploaded.

Once you have the file data (in either of the approaches) you can then use it in the blazor app - for example, add another component for an image preview, or anything else that your business logic requires. These parts, however, are not part of the upload component itself.

With that said, I am going to mark this one as a Completed request because we already provide the capability to do what you need to do. Perhaps the only thing that is still not yet here is the custom drop zone feature.

I would also suggest you browse through the currently open enhancement ideas for the upload component to get an idea of what currently exists in this idea stage so you can see of something from that is interesting to you.

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.