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

Handling navigation exceptions in Kendo Mobile

3 Answers 62 Views
Application
This is a migrated thread and some comments may be shown as answers.
Paul McNamara
Top achievements
Rank 1
Paul McNamara asked on 04 Sep 2013, 02:35 PM
Say for example a navigation times out (quite likely in a mobile situation where reception can be patchy) or the the request fails for another reason (due to a server-side exception for example). Currently this will cause the who app to freeze.

Is there a way to handle this exception and show a friendly message to the user and keep the app up and running? jQuery Mobile does quite a good job of this out of the box if ajax navigation or form posting fails and I'd like to do something similar with Kendo.

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 06 Sep 2013, 11:24 AM
Hi,

in case you anticipate such cases, your best bet would be to work with local views and fetch data using the DataSource component. 

If this is not an option, you may use the global ajax error handling.

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Paul McNamara
Top achievements
Rank 1
answered on 12 Sep 2013, 09:33 AM
Could I possibly request that some hooks get added in order to deal with this? A failed AJAX navigation appears to leave the UI in a broken state and it'd be good to be able to handle the error AND revert to the previous working state of the view. I will be using local views as much as possible but I'd like be able to handle remote view navigation errors too.
0
Kiril Nikolov
Telerik team
answered on 12 Sep 2013, 10:26 AM
Hi Paul,

Of course you can request that. Please head to our uservoice section and submit your request there, so it will be considered for future releases of Kendo UI.

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
Application
Asked by
Paul McNamara
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Paul McNamara
Top achievements
Rank 1
Kiril Nikolov
Telerik team
Share this question
or