# Data Binding Overview

The Telerik UI for ASP.NET MVC Grid provides flexible data binding capabilities that allow you to display and manage tabular data from various sources. You can choose the appropriate binding method based on your application architecture and data requirements.

## Data Binding Approaches

The Grid supports the following data binding methods:

### Local Data Binding

Bind the Grid to a local dataset by passing a model directly in the component definition. This approach is best for:

* Small to medium-sized datasets that can be loaded in memory.
* Static data that does not require frequent updates.
* Scenarios where all data is available at render time.

For detailed implementation instructions, see [Local Data Binding](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/data-management/grid/binding/local).

### Remote Data Binding

Connect the Grid to a remote endpoint by using AJAX operations. This approach supports:

* Dynamic data loading with paging, sorting, grouping, and filtering.
* Real-time data updates from external sources.
* Improved performance with large datasets through on-demand data loading.

For more information and examples, refer to the [Remote Data Binding](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/data-management/grid/binding/ajax-binding) documentation.

### Custom DataSource Binding

Implement custom data binding scenarios when you need full control over data retrieval:

* Custom data processing logic based on the remote server structure and requirements.
* Custom data operations such as paging, sorting, filtering, and grouping.
* Connection to [OData](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/data-management/grid/binding/odata-binding) and [GraphQL](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/data-management/grid/binding/graphql-binding) services.

For more information, refer to the [Custom Binding](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/data-management/grid/binding/custom-binding) documentation.

### Web API Data Binding

Connect the Grid to Web API endpoints for RESTful data operations:

* RESTful API integration with automatic HTTP verb mapping.
* Standard HTTP methods (`GET`, `POST`, `PUT`, `DELETE`) for CRUD operations.
* JSON data exchange format.
* Clean separation between client and server logic.

For more information, refer to the [Web API Binding](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/data-management/grid/binding/webapi-binding) documentation.

### Server Binding

Use server-side binding to render the Grid with data on the server. This approach provides:

* Server-side rendering with pre-populated data.
* Full-page postback scenarios with HTTP requests for CRUD operations.
* Integration with server-side data processing.
* Server-side template execution using Razor syntax.

For detailed implementation instructions, see [Server Binding](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/data-management/grid/binding/server-binding) documentation.

### SignalR Data Binding

Use SignalR data binding to enable real-time data synchronization:

* Real-time data synchronization across multiple clients.
* Automatic Grid updates when data changes on the server.
* Live collaboration features with instant data broadcasting.
* Push notifications for data modifications without page refresh.

For detailed implementation instructions, see [SignalR Data Binding](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/data-management/grid/binding/signalr-binding) documentation.

## Key Considerations

When selecting a data binding approach for the Grid, evaluate the following factors:

* **Performance**—Local binding offers faster initial rendering for small datasets, while remote binding provides better performance with large datasets through on-demand loading and server-side operations.

* **Data volume**—Large datasets require remote binding, custom DataSource, or Web API binding to leverage server-side paging, sorting, and filtering for optimal performance.

* **Security**—Remote binding provides better control over data access through server-side validation and authorization.

* **Real-time requirements**—SignalR binding is essential for scenarios requiring live data updates and multi-client synchronization.

* **API architecture**—Web API binding is optimal for RESTful services, while Custom DataSource binding provides flexibility for OData, GraphQL, or custom endpoints.

* **Application model**—Server binding is suitable for traditional MVC applications requiring server-side rendering and full-page postbacks.

* **Development complexity**—Local binding is simplest for static data, while Custom DataSource binding offers maximum flexibility at the cost of increased implementation complexity.

## Loading Overlay Types

The Grid component exposes two types of loading indicators:

* The `GridLoaderType.LoadingPanel` adds an overlay element with a loading spinner over the main content of the Grid. This is the default type.

* The `GridLoaderType.Skeleton` uses the [SkeletonContainer widget](https://docs.telerik.com/kendo-ui/controls/skeletoncontainer/overview) to show a simplified preview of each Grid cell. The `Skeleton` loading type helps users estimate how the content will look after loading completes. It also makes page load time appear shorter.

See the `Skeleton` loading type in action in the live demo:

* [Skeleton Loading Type Demo](https://demos.telerik.com/aspnet-mvc/skeletoncontainer/grid-integration)

## See Also

* [Server-Side API of the Grid HtmlHelper](https://www.telerik.com/aspnet-mvc/documentation/api/grid)

* [Local Data Binding by the Grid for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/grid/local-data-binding)

* [Remote Data Binding by the Grid for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/grid/remote-data-binding)

* [Custom DataSource Binding by the Grid for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/grid/custom-datasource)

* [Custom Ajax Binding by the Grid for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/grid/customajaxbinding)

* [Web API Binding by the Grid for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/grid/webapi)

* [OData Binding by the Grid for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/grid/odata)

* [SignalR Binding by the Grid for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/grid/signalr)

* [GraphQL Service Binding by the Grid for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/grid/graphql)
