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

What function triggers when I file is being dragged?

2 Answers 38 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Alexis
Top achievements
Rank 1
Alexis asked on 20 Nov 2012, 02:42 PM
Hi,

I have seen this documentation about how to turn the drop zone visible. I wanted the user to know where he could drop his files so I changed the style to a div with a visible gray dashed border.
However, I would like this border to turn black whenever a file is being dragged. It will give a better feedback to the user to where he has to drop the file.

I know this is possible because in the default configuration, the drop zone is invisible and turns visible whenever a file is being dragged in the window.

So long story short, what function is triggered when dragging occurs?

Thanks for your help!

Alex

2 Answers, 1 is accepted

Sort by
0
Alexis
Top achievements
Rank 1
answered on 21 Nov 2012, 03:09 PM
Hi again,

This should not be that difficult. I really need an answer on that.
Maybe the question is not clear enough? If this is the case, can someone tell me?
Thanks!

Alex
0
Masaab
Top achievements
Rank 1
answered on 21 May 2014, 01:38 AM
you can used select event.

for instance 

$("#ImageFile").kendoUpload({
               async: {
                   autoUpload: false,
                   saveUrl:'It is Null'
               },
               multiple: false,
               showFileList: false,
               select: function (e) {
                   console.log("Selected File"+ e);
                   }
Tags
Upload
Asked by
Alexis
Top achievements
Rank 1
Answers by
Alexis
Top achievements
Rank 1
Masaab
Top achievements
Rank 1
Share this question
or