Display Overlay on HTML error

2 posts, 0 answers
  1. James
    James avatar
    40 posts
    Member since:
    Sep 2014

    Posted 17 Feb 2016 Link to this post

    I have a Kendo chart that receives data from the server using Angular. While loading I have an overlay that displays to show that the data is loading. That works fine, but if I receive an error on my promise call I would like to display another message (i.e. "Could not retrieve data"). Below is a sample of what my call looks like.

    2.    .then(function (result) {
    3.        options.success(result.data.data);
    4.        // at this point either dataBound or Render is called and I can remove the overlay.
    5.    }).catch(function (error) {
    6.        options.error(error);
    7.        // What can I call here to change the message in my overlay?
    8.    });

    Basically, what can I do in my catch to change the message on my overlay?
  2. T. Tsonev
    T. Tsonev avatar
    2794 posts

    Posted 19 Feb 2016 Link to this post


    That would depend on how the overlay is implemented. I don't have enough information to say for certain.

    T. Tsonev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top