Upload onSuccess event is not firing when messages specified

4 posts, 1 answers
  1. Igor
    Igor avatar
    145 posts
    Member since:
    Jan 2011

    Posted 10 Oct 2013 Link to this post

    Hi all! 
    So i have Upload on my page:

    @(Html.Kendo().Upload()
        .Name("docUpload")
        .Multiple(false)
        .ShowFileList(false)
        .Events(e => e.Upload("onUpload").Success("onDocUploaded"))
        .Async(a => a
            .Save("DocUpload", "Documents")
            .AutoUpload(true)
        )
    )
    this one works fine and all events - onUpload and onDocUploaded - firing as expected.

    But if i want to add custom messages:

    @(Html.Kendo().Upload()
        .Name("docUpload")
        .Messages(x=>x.Select("Select document..."))
        .Multiple(false)
        .ShowFileList(false)
        .Events(e => e.Upload("onUpload").Success("onDocUploaded"))
        .Async(a => a
            .Save("DocUpload", "Documents")
            .AutoUpload(true)
        )
    )
    it will break events, and no events (except onComplete) are called in my JavaScript.
    I have tested it on Chrome (last version) and IE 9. My KendoUI version is 2013.2.918.
    Is there any workarounds?
  2. Answer
    Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2159 posts

    Posted 11 Oct 2013 Link to this post

    Hello Igor,


    We are not aware of such problem and I could not reproduce it on my side. Please check the developer tools console of your browser for any JavaScript errors which may be the reason for the issue. If the problem is still persisting, please send me a small sample project, where it is reproducing so I could inspect it locally and assist you further.

    I am looking forward to hearing from you.

     

    Regards,
    Dimiter Madjarov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Igor
    Igor avatar
    145 posts
    Member since:
    Jan 2011

    Posted 11 Oct 2013 Link to this post

    Dimiter , you right!
    When i create a new project from scratch, it seems working fine and all events are fired as expected, even with custom messages.
    Therefore i suspect, that i have something related to scripts in my own project, where i can reproduce it.
    I will try to figure out more details on that error, and will update you.
    Thanks for the quick responce ;)
  5. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2159 posts

    Posted 11 Oct 2013 Link to this post

    Hi Igor,


    Thanks for keeping me updated.
    Let me know if you require further assistance.

     

    Regards,
    Dimiter Madjarov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
UI for ASP.NET MVC is VS 2017 Ready