/
/
Reactive Forms

This sample demonstrates CRUD operations in Grid with using the Reactive Angular Forms. You can perform CRUD operations as follows, Add - To add new record, click Add toolbar button Edit - To edit record, double click a row or click toolbar Edit button after selected a row Delete - To delete record, click toolbar Delete button after selected a row Update,Cancel - You can save or discard changes by click toolbar Update and Cancel button respectively
More Details...

Loading...
Description

The Grid supports CRUD operations. This CRUD operations can be configured in Grid using editSettings. In this demo, Angular Reactive Forms is enabled for editing using Dialog Template. We have created and manipulated FormControl objects in the component class for editing column data. We have used editSettings.mode as Dialog and the NgTemplate content with editSettingsTemplate as template variable to define the editors. 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 with custom elements and 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.