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

Kendo Window error handler

3 Answers 99 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bjarke
Top achievements
Rank 1
Bjarke asked on 03 Aug 2012, 12:03 PM
I specify a url for the window 'content' property. If a server error occurs on window open then my error handler is invoked as expected.

But how do I access the result of the url request? It's of no use to have a custom error page if I cannot display the message. I havent' been able to find any proper documentation on the error handlers 'e' parameter and I haven't found anything interesting using the debugger.

3 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 07 Aug 2012, 08:18 AM
Hello Bjarke,

Indeed, the error information was not passed to the error handler. We fixed that, and the next internal build will allow you to access it through the event arguments:

    error: function(e) {
        // access e.status and e.xhr
    }

Regards,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Bjarke
Top achievements
Rank 1
answered on 13 Aug 2012, 09:18 AM
Thank you. Is it possible to get a patch for our current 2012.1.322 version?

Btw. the Kendo UI API documentation is generally lacking documentation on event handler arguments. It would be most appreciated.
0
Alex Gyoshev
Telerik team
answered on 14 Aug 2012, 09:04 AM
Hello Bjarke,

> Thank you. Is it possible to get a patch for our current 2012.1.322 version? 
We can branch directly from the 322 or 515 version. If you are using a subsequent internal build, we cannot branch for it -- you will need to upgrade, or apply the change manually:

The line 
    that.trigger(ERROR);
has been replaced by
    that.trigger(ERROR, {
        status: status,
        xhr: xhr
    });

If you need a custom build, please open a support ticket.

Greetings,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Window
Asked by
Bjarke
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Bjarke
Top achievements
Rank 1
Share this question
or