Add click event to k-dropzone using angular-js

5 posts, 0 answers
  1. Josejulio
    Josejulio avatar
    2 posts
    Member since:
    Oct 2014

    Posted 17 Mar 2015 Link to this post

    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.
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 19 Mar 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Josejulio
    Josejulio avatar
    2 posts
    Member since:
    Oct 2014

    Posted 20 Mar 2015 in reply to Kiril Nikolov Link to this post

    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.
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 23 Mar 2015 Link to this post

    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!
     
  6. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 23 Mar 2015 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready