Example of Command Column in Angular Grid Component

This sample demonstrates CRUD operations in Grid using command column. You can perform CRUD operations as follows,

1 of 17 pages (200 items)
Description

The Grid provides an option to render CRUD action buttons in a column by using the CommandColumn feature. The columns->commands property accepts array of CommandModel object. The predefined command button can be defined by using type property.

The built-in command button are,

  • Edit
  • Delete
  • Cancel
  • Save

Injecting Module

Grid features are segregated into individual feature-wise modules. To use commandColumn feature, we need to inject CommandColumnService into the @NgModule.providers section.

More information on the commandcolumn configuration can be found in this documentation section.