Completed
Last Updated: 24 Feb 2023 12:57 by ADMIN
Release 4.1.0 (15/03/2023)
David
Created on: 23 Feb 2022 21:29
Category: FileSelect
Type: Feature Request
10
Add a clearFile option similar to the Upload control
When using the FileSelect control in a modal popup, it would be great for using it multiple times to be able to clear selected files after the back end code is done working with them in a similar fashion to how the upload .ClearFiles() works.
1 comment
ADMIN
Apostolos
Posted on: 02 Mar 2022 15:24

Hello David,

I agree this is a valid feature request, so I changed its status to "Unplanned".

In the meantime, here is the link to Telerik REPL for Blazor with a workaround. I link it here for better visibility.

It uses a JavaScript function that you can call through JS Interop, which will remove all previously selected files.

Note that I set a custom CSS Class for the FileSelect to avoid conflicts if someone has multiple FileSelect or Upload components on the page.

The suppress-error="BL9992" attribute is not necessary if the JavaScript is in a proper place in the app.

Regards,
Apostolos
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.