Example of Dialog Editing in Angular Tree Grid Component

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

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

The Tree Grid supports CRUD operations. This CRUD operations can be configured in Tree Grid using editSettings. Also, it has different modes to manipulate the datasource.

The available modes are,

  • Row
  • Cell
  • Dialog

In this demo, Dialog mode is enabled for editing by defining editSettings.mode as dialog. You can start editing by double clicking a row or clicking on toolbar's Edit button, then the currently selected row will be shown on a dialog and you can change the row values and save edited data to the datasource.

Injecting Module:

Tree Grid component features are segregated into individual feature-wise modules. To use exporting feature, we need to inject EditService into the @NgModule.providers section.

More information on the Tree Grid instantiation can be found in this documentation section.