I'm implementing the scheduler as a personal event reminder, I want to use it in a Angular Application working offline some time, I wondered using Angular services, and observables in order to retrieve events, and making the CRUD, because I can control the request and response in case of loss of internet connectivity and return the localStorage data if any.
Can you help me?
I'm trying to override a DataAdaptor, catching the processResponse method, but this method it's only called when the response was successful, how can I return a fixed response if the request fails?
I tried overriding beforeSend, and creating anonymous function in request.onerror, I catch the error, but I don't know how to return the event data to the control.
NRNevitha Ravi Syncfusion Team April 17, 2019 07:54 AM
Greetings from Syncfusion Support.
We suspect that your requirement is to assign stored data on network failure and this can be achieved in actionFailure event of scheduler. In the following sample, we have stored the scheduler events in localStorage using dataBinding event.