Last Updated: 11 Feb 2022 09:47 by ADMIN
Created on: 04 Feb 2022 12:14
Category: FileSelect
Type: Feature Request
Allow cancelling the OnSelect and OnRemove events

I am using the TelerikFileSelect component and I noticed that the user can select the same file multiple times and it just adds to the list

I was wondering if it's possible to maybe add logic to the OnSelect event that prevents the file from being added to the list of files under certain conditions such as duplication.




This could be achieved through cancelling the OnSelect event based on the desired condition - for instance, duplicated file names.

1 comment
Nadezhda Tacheva
Posted on: 11 Feb 2022 09:47

Hi Stewart,

Indeed, this is the default configuration of the FileSelect component.

A useful and flexible approach for such scenario would be to allow cancelling the OnSelect event based on specific condition. Thus, one can set their desired business logic for preventing the files from selection - could be duplicated files as per your request or something else.

The FileSelect currently does not provide option for cancelling its events. However, we consider it a valid feature that could be added in a future version of the product. Having this in mind, I tweaked the title a bit to cover the specific request. I also added your vote to increase its popularity as we are prioritizing the feature requests implementation based on the community interest and demand. As a creator, you will be notified via email on any status updates and thus you will easily keep in track with the progress of the feature.

Nadezhda Tacheva
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.