Getting Started with the Kendo UI for Angular Grid

The Kendo UI Grid for Angular displays data in a tabular format and comes with 100+ built-in features, including paging, sorting, filtering, and data binding.

Basic Usage

The following example demonstrates the Grid in action.

Example
View Source
Edit In Stackblitz  
Change Theme:

Installation

Either use the quick setup (Angular CLI v6 or later) or manually add the package (Angular CLI v5 or earlier).

Quick Setup with Angular CLI v6 or Later

Angular CLI v6 supports the addition of packages through the ng add command which executes in one step the set of otherwise individually needed commands.

  ng add @progress/kendo-angular-grid

Manual Setup

  1. Download and install the package.

       npm install --save @progress/kendo-angular-grid @progress/kendo-angular-dropdowns @progress/kendo-angular-inputs @progress/kendo-angular-dateinputs @progress/kendo-data-query @progress/kendo-angular-intl @progress/kendo-angular-l10n @progress/kendo-drawing @progress/kendo-angular-excel-export @progress/kendo-angular-buttons @progress/kendo-angular-common @progress/kendo-angular-pdf-export @progress/kendo-angular-popup
  2. Once installed, import the GridModule in your application root or feature module.

    import { NgModule } from '@angular/core';
    import { BrowserModule } from '@angular/platform-browser';
    import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
    import { GridModule } from '@progress/kendo-angular-grid';
    import { AppComponent } from './app.component';
    
    @NgModule({
        bootstrap:    [AppComponent],
        declarations: [AppComponent],
        imports:      [BrowserModule, BrowserAnimationsModule, GridModule]
    })
    export class AppModule {
    }
  3. You are required to install one of the Kendo UI themes for Angular to style your components. For more information on how to add the styles, refer to the section on styling.

  4. For Angular 9.x and later, install and import the @angular/localize package either by running ng add @angular/localize or by following the steps outlined below:

    1. Run npm install --save @angular/localize.
    2. Add import '@angular/localize/init'; to your src/polyfills.ts file.

Dependencies

The Grid package requires the following peer dependencies that have to be installed by your application:

  • @angular/common
  • @angular/core
  • @angular/forms
  • @angular/animations
  • @progress/kendo-angular-buttons
  • @progress/kendo-angular-common
  • @progress/kendo-angular-dateinputs
  • @progress/kendo-angular-dropdowns
  • @progress/kendo-angular-excel-export
  • @progress/kendo-angular-inputs
  • @progress/kendo-angular-intl
  • @progress/kendo-angular-l10n
  • @progress/kendo-angular-pdf-export
  • @progress/kendo-angular-popup
  • @progress/kendo-data-query
  • @progress/kendo-drawing
  • rxjs

The Grid package utilizes the Angular animation system, which supports a specific set of browsers.

Functionality and Features

You can also use a context menu in the Grid by integrating the Kendo UI ContextMenu for Angular.