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

Upload onSuccess event is not firing when messages specified

3 Answers 429 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Igor
Top achievements
Rank 2
Igor asked on 11 Oct 2013, 12:42 AM
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?

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 11 Oct 2013, 07:44 AM
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!
0
Igor
Top achievements
Rank 2
answered on 11 Oct 2013, 09:13 AM
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 ;)
0
Dimiter Madjarov
Telerik team
answered on 11 Oct 2013, 12:27 PM
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!
Tags
Upload
Asked by
Igor
Top achievements
Rank 2
Answers by
Dimiter Madjarov
Telerik team
Igor
Top achievements
Rank 2
Share this question
or