Skip to content

SyncfusionExamples/load-on-demand-data-binding-in-ej2-treegrid

Repository files navigation

load-on-demand-data-binding-in-ej2-treegrid

Repository Description

This repository demonstrates remote data binding for ASP.NET Core TreeGrid using url adaptor. It showcases fetching data dynamically and enabling loadChildOnDemand for loading children only on demand expanding and collapsing.

Overview

Remote data binding using a url adaptor allows the TreeGrid to fetch and display data on demand, reducing memory usage and supporting scalable handling of large datasets.

Features

  • Url Adaptor: Connect to URL endpoints and dynamically fetch data from remote sources
  • Server-Side child data handling: Appending child data

Prerequisites

  • .NET 6.0 or higher
  • Visual Studio or VS Code
  • ASP.NET Core SDK
  • C# knowledge
  • REST endpoint knowledge

Installation

  1. Clone repository
  2. Navigate to project directory
  3. Run dotnet restore
  4. Execute dotnet build
  5. Run dotnet run

Usage

Implement remote data binding:

  1. Create url adaptor returning JSON
  2. Configure treegrid with url adaptor

Configuration

  • API Endpoint: url adaptor
  • Response Format: JSON
  • LoadChildOnDemand Parameters: Child data

Documentation

For detailed information and configuration options:

https://ej2.syncfusion.com/aspnetcore/documentation/tree-grid/data-binding/remote-data#loadchildondemand

About

This repo contains a .net core application that shows how we can maximize the performance with the Load on Demand Feature in EJ2 Tree Grid Virtualization

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors