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

OnSelect event not fired for Drag&Drop

3 Answers 50 Views
Upload
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Clare
Top achievements
Rank 2
Clare asked on 31 Mar 2011, 07:33 PM
I'm not sure if this is by design, but when I drag and drop a file, OnSelect() client event is not fired (file gets added to the list).

OnSelect event handler is where I validate the file type & count and it works fine if I select files through the standard dialog.

3 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 01 Apr 2011, 03:15 PM
Hello Clare,

Thank you for reporting this problem. We've fixed it and the fix will be available in the next release.

As a token of gratitude for your involvement your Telerik points have been updated.

Kind regards,
Tsvetomir Tsonev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Adriano
Top achievements
Rank 1
answered on 13 Jun 2011, 11:11 AM
Hi all, when I'm using drag and drop for selecting files, in the OnSelect event handler the file extension is undefined. All it works right if I select files using the browser dialog.

Could you help us?
Adriano
0
T. Tsonev
Telerik team
answered on 14 Jun 2011, 08:46 AM
Hi Adriano,

Thank you for reporting this problem. We've fixed it and the next internal builds will be free of this defect.

You can use the following regular expression as a workaround for extracting the extension:

var extension = file.name.match(/\.([^\.]+)$/)[0] || "";

As a token of gratitude for your involvement your Telerik points have been updated.


Kind regards,
Tsvetomir Tsonev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Upload
Asked by
Clare
Top achievements
Rank 2
Answers by
T. Tsonev
Telerik team
Adriano
Top achievements
Rank 1
Share this question
or