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.
Installation
Either use the quick setup (Angular CLI) or manually add the package.
Quick Setup with Angular CLI
Angular CLI 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
Download and install the package.
npm install --save @progress/kendo-angular-grid @progress/kendo-angular-dropdowns @progress/kendo-angular-treeview @progress/kendo-angular-inputs @progress/kendo-angular-dateinputs @progress/kendo-data-query @progress/kendo-angular-intl @progress/kendo-angular-l10n @progress/kendo-angular-label @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 @progress/kendo-licensing
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 { }
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.
For Angular 9.x and later, install and import the
@angular/localize
package either by runningng add @angular/localize
or by following the steps outlined below:- Run
npm install --save @angular/localize
. - Add
import '@angular/localize/init';
to yoursrc/polyfills.ts
file.
- Run
Follow the instructions on the Kendo UI for Angular My License page to activate your license. You can skip this step if your application already contains a Kendo UI license 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-treeview
- @progress/kendo-angular-excel-export
- @progress/kendo-angular-inputs
- @progress/kendo-angular-intl
- @progress/kendo-angular-l10n
- @progress/kendo-angular-label
- @progress/kendo-angular-pdf-export
- @progress/kendo-angular-popup
- @progress/kendo-data-query
- @progress/kendo-drawing
- @progress/kendo-licensing
- rxjs
The Grid package utilizes the Angular animation system, which supports a specific set of browsers.
Functionality and Features
- Data operations
- Export options
- Advanced implementations
- [Context menu]({% slug contextmenu_grid %})
- Detail row template
- Toolbar template
- Hierarchy
- Responsive design
- Row reordering
- More settings
- Use case scenarios
You can also use a context menu in the Grid by integrating the Kendo UI ContextMenu for Angular.