Example of Template-driven Forms in Angular Grid Component

This sample demonstrates CRUD operations in Grid with using the Angular Template-driven forms. You can perform CRUD operations as follows,

1 of 5 pages (60 items)
Description

The Grid supports CRUD operations. This CRUD operations can be configured in Grid using editSettings.

In this demo, Angular Template-driven Forms is enabled for editing using Inline template. We have created the form controls for editing the row data using NgTemplate content with editSettingsTemplate as template variable. The inline template editing can be enabled by defining editSettings.mode as Normal and editSettingsTemplate as ng-template. You can start editing by double clicking a row or clicking on toolbar's Edit button, then the currently selected row will be changed to edited state by using given template. you can change the row values and save edited data to the datasource.

Injecting Module:

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