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

Remove multi-selected file?

2 Answers 404 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Louise
Top achievements
Rank 1
Louise asked on 27 Jun 2017, 01:25 AM
When I select/drag multiple files at the same time and use removebyUid, removing any file from that group removes all the files in the group. how do I remove a single file from a group?

2 Answers, 1 is accepted

Sort by
0
Louise
Top achievements
Rank 1
answered on 27 Jun 2017, 04:26 AM
http://dojo.telerik.com/EnaBUf/2

Here is a dojo example, select more than 1 file on select or when dragging. what I want to achieve is only remove the first file on the group, not the whol first group
0
Ivan Danchev
Telerik team
answered on 28 Jun 2017, 02:45 PM
Hello Louise,

Please review Fig.1 and Fig.2 in the Synchronous mode and Asynchronous mode documentation sections respectively in this article. They demonstrate the different way multiple uploaded files are displayed in both of the Upload's modes of operation. Since you are using synchronous mode the selected filenames are displayed as span elements within a single li element, i.e. there are no multiple uids but a single uid applied to a li element, within which all filenames are nested. There is no built-in functionality that allows the removal of separate filenames in this mode.
In async mode the Upload displays the uploaded files in a file list: each uploaded file is rendered in a separate li element (with class "k-file"). Each file in this mode has its own uid and can be removed separately.

Regards,
Ivan Danchev
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Upload
Asked by
Louise
Top achievements
Rank 1
Answers by
Louise
Top achievements
Rank 1
Ivan Danchev
Telerik team
Share this question
or