Handling navigation exceptions in Kendo Mobile

4 posts, 0 answers
  1. Paul McNamara
    Paul McNamara avatar
    30 posts
    Member since:
    Apr 2010

    Posted 04 Sep 2013 Link to this post

    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.

  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 06 Sep 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Paul McNamara
    Paul McNamara avatar
    30 posts
    Member since:
    Apr 2010

    Posted 12 Sep 2013 Link to this post

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

    Posted 12 Sep 2013 Link to this post

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