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

Add click event to k-dropzone using angular-js

4 Answers 169 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Josejulio
Top achievements
Rank 1
Josejulio asked on 17 Mar 2015, 07:12 PM
I would like to add to open the file selection dialog when clicking the k-dropzone, however if i try to set the_element.attr('ng-click', 'foo()') it won't work, is there a way to make it work?

Thanks in advance.

4 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 19 Mar 2015, 01:32 PM

Hello Josejulio,

Please check the following example and let me know if it helps:

http://dojo.telerik.com/EFATa

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Josejulio
Top achievements
Rank 1
answered on 20 Mar 2015, 10:35 PM
Hello, thanks for the code, but that wasn't exactly what i was looking for, i was looking to add that functionality to the dropzone of the Upload widget, as i wasn't able to attach any ng-click because i had no control over its creation, i managed to make it work by using the event that is fired when the widget is created, and connecting with jquery a click on it (not sure how to do it using angularjs). Anyway, i appreciate your answer.

Regards.
0
Kiril Nikolov
Telerik team
answered on 23 Mar 2015, 10:07 AM

Hello Josejulio,

If I am not mistaken the problem is resolved now, so I will go ahead and close the ticket, but in case you have any questions, you can always reopen it.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Kiril Nikolov
Telerik team
answered on 23 Mar 2015, 10:07 AM

Hello Josejulio,

If I am not mistaken the problem is resolved now, so I will go ahead and close the ticket, but in case you have any questions, you can always reopen it.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Upload
Asked by
Josejulio
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Josejulio
Top achievements
Rank 1
Share this question
or