Display Overlay on HTML error

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

    Posted 17 Feb 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.

    1.service.getData(request)
    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
    Admin
    T. Tsonev avatar
    2771 posts

    Posted 19 Feb Link to this post

    Hello,

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

    Regards,
    T. Tsonev
    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
Back to Top