|
|
|
|
|
Editing
Grid Grouping Control supports editing of records at run time. It offers different editing modes such as In-place Editing and Editing via Forms to make the editing more user-friendly. Options to add new records and delete existing records are also available. If the datasource can be updated, the grid will automatically save the changes on the underlying datasource.
|
|
|
|
Users can trigger editing on a record by clicking the current record,the Edit button on th Edit column function, or the Edit button on the navigation bar.
Grouping Grid offers four different editing modes which are explained below:
-
Normal Mode - It lets you edit the records in-place within the row.
-
Default Form Mode - It dynamically generates an edit form for the row currently being edited.
-
Template Form Mode - You can specify the template for the edit form to fully customize its appearance.
-
Inline Form Mode - The grid will display the edit forms inline within the row.
It is also possible to add a new record through the various built-in editing modes.
|
|
|
|
Along with the built-in editing modes, Grid Grouping Control provides built-in support for an Edit/Delete column. This feature
displays a new Edit/Delete column with an 'Edit/Delete' link for each record row. When a row is selected in edit mode,the 'Edit/Delete' link is replaced by an 'Update/Cancel' link that allows the user to either save or cancel changes.
'Edit/Delete' Column
|
|
|
|
Templates provide support for adding Syncfusion and third party control elements such as Check Boxs, Buttons,
Combo Boxs, Numeric Up/Down, Masked Edit, Month Calendar, Text Boxs, Currency Text Boxs, Image Control and Hyperlinks as grid fields.
Using templates custom controls can be added to the grid. These include various grid taskbars, such as Pager Bar and Navigation Bar.
The below grid adds Drop Down List and Drop Down Calendar controls using the Edit Template command to edit the 'Title' and 'BirthDate' columns. The grid also uses a Drop Down List control for the 'Country' column.
Adding Syncfusion Controls in Templates
|
|
|
|
When the grid contents are changed by editing or deleting a row the grid will automatically update the underlying datasource provided the datasource exposes standard interfaces.
If the grid is bound to a Data Source Control the Update command should be implemented. The grid will use this command to automatically update the datasource.
Implementing the 'Update' Command
|
|
|
|
|
|
|
|