This demo showcases the way of binding remote services to Scheduler component. Here, the DataManager is used to bind the remote data with Scheduler.
| |||||||||||||||||||||||||||||||||||
|
Scheduler can be bound to remote services by assigning the dataSource
property with the instance of
DataManager
.
The DataManager here acts as an interface between the service endpoint and the Scheduler, and will require the below minimal information to interact with the service endpoint properly.
url
- Defines the service endpoint from where the data needs to be fetchedadaptor
- Defines the adaptor option.
By default, ODataAdaptor
is used for remote binding.Adaptor is responsible for processing response and request from/to the service endpoint.
@syncfusion/ej2-data
package provides some predefined adaptors which are designed
to interact with particular service endpoints. They are as follows,
UrlAdaptor
- Use this to interact with any remote services.
This is the base adaptor for all the remote based adaptors.ODataAdaptor
- Use this to interact with OData endpoints.ODataV4Adaptor
- Use this to interact with OData V4 endpoints.WebApiAdaptor
- Use this to interact with Web API created under OData standards.WebMethodAdaptor
- Use this to interact with web methods.