Example of Command Column in Angular Tree Grid Component

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

1
Planning
2/3/20175100
2
Plan timeline
2/3/20175100
3
Plan budget
2/3/20175100
4
Allocate resources
2/3/20175100
5
Planning complete
2/7/201700
6
Design
2/10/2017386
7
Software Specification
2/10/2017360
8
Develop prototype
2/10/20173100
9
Get approval from customer
2/13/20172100
10
Design Documentation
2/13/20172100
1 of 4 pages (36 items)
Description

The Tree 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

Tree Grid component 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 command column configuration can be found in this documentation section.