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

Display Overlay on HTML error

1 Answer 40 Views
Charts
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 17 Feb 2016, 01:11 PM

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?

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 19 Feb 2016, 04:12 PM
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!
 
Tags
Charts
Asked by
James
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or