Example of Remote Data in ASP.NET Core Gantt Control

This sample demonstrates the way of binding data to Gantt chart with a remote service. The Gantt chart data source is bound to remote data using the DataManager. The data in this sample shows the various phases of barley harvesting.

DEMO
SOURCE

The dataSource property in Gantt chart can be assigned with the instance of DataManager to bind remote data. The DataManager, which will act as an interface between the service endpoint and the Gantt chart, will require the below minimal information to interact with service endpoint properly.

  1. DataManager->url - Defines the service endpoint to fetch data.
  2. DataManager->adaptor - 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. Adaptors are designed to interact with particular service endpoints. They are,
  3. UrlAdaptor - Use this to interact with any remote services. This is the base adaptor for all remote based adaptors.
  4. ODataAdaptor - Use this to interact with OData endpoints.
  5. ODataV4Adaptor - Use this to interact with OData V4 endpoints.
  6. WebApiAdaptor - Use this to interact with Web API created under OData standards.
  7. WebMethodAdaptor - Use this to interact with web methods.

In this demo, remote data is bound by assigning service data as an instance of DataManager to the dataSource property. More information on the data binding can be found in this documentation section.

Transform your ASP.NET Core web apps today with Syncfusion ASP.NET Core components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE