This repository contains a collection of Angular DataGrid samples that demonstrate how to bind data from various remote services using Syncfusion’s EJ2 Angular Grid. Each sample focuses on a specific adaptor or communication pattern commonly used in real-world enterprise applications.
The repository is designed as a multi-sample workspace, where each folder represents an independent client–server setup. These samples should be run individually by navigating to the appropriate server and client projects.
The Syncfusion EJ2 Angular Grid supports powerful data operations such as paging, sorting, filtering, and CRUD actions when working with remote data. This repository demonstrates how these operations are handled using different adaptors and backend technologies.
Each sample includes:
- A server project that exposes data using a specific protocol or API pattern
- An Angular client application that consumes the remote data using the corresponding Syncfusion DataManager adaptor
The goal is to provide clear, isolated references for implementing remote data binding in Angular applications without mixing multiple approaches in a single setup.
The repository includes the following adaptor-based samples:
- UrlAdaptor – Basic HTTP-based data operations using custom endpoints
- WebApiAdaptor – ASP.NET Core Web API integration with standard REST patterns
- WebMethodAdaptor – Data binding using controller web methods
- ODataV4Adaptor – Integration with OData v4 services
- RemoteSaveAdaptor – Server-side CRUD operations with remote save handling
- GraphQLAdaptor – Data binding using a GraphQL server and Angular client
Each sample is self-contained and has its own server and client projects.
Ensure the following tools are installed before running any sample:
- Node.js (LTS version recommended)
- Angular CLI
- .NET SDK (for ASP.NET Core server projects)
- Visual Studio or Visual Studio Code
Clone the repository and navigate to the project directory:
git clone https://github.com/SyncfusionExamples/Binding-data-from-remote-service-to-angular-data-grid.gitIn this repository, each sample must be executed independently by starting its server and client projects separately.
For every sample, follow this sequence:
- Start the server project
- Start the Angular client project
- Access the Angular application in the browser
-
Navigate to the server project:
cd UrlAdaptor/UrlAdaptor.Server dotnet runThis starts the ASP.NET Core server that exposes grid data endpoints.
-
Open a new terminal and navigate to the Angular client:
cd UrlAdaptor/urladaptor.client npm install ng serve -
Open the displayed local URL in a browser to view the Angular DataGrid bound to remote data.
The same execution pattern applies to the following folders:
WebApiAdaptorWebMethodAdaptorODataV4AdaptorRemoteSaveAdaptor
Each of these contains:
- A
.Serverfolder for the ASP.NET Core backend - A
.clientfolder for the Angular frontend
The GraphQL sample includes an additional Node.js-based GraphQL server.
-
Start the GraphQL server:
cd GraphQLAdaptor/GraphQLServer npm install npm start -
Start the Angular client:
cd GraphQLAdaptor/GridClient npm install ng serve
- All grid operations such as paging, sorting, filtering, and CRUD are processed remotely
- The Syncfusion DataManager automatically maps grid actions to server requests
- Proxy configurations are used in some Angular clients to route API calls during development