|
5 | 5 | <e-column field='CustomerID' headerText='Customer ID' width='120' textAlign="right" [validationRules]='customeridrules'></e-column> |
6 | 6 | <e-column field='Freight' headerText='Freight' width='120' format='C2' textAlign="right" editType='numericedit' [validationRules]='freightrules'></e-column> |
7 | 7 | <e-column field='ShipName' headerText='Ship Name' width='170'></e-column> |
8 | | - <e-column field='ShipCountry' headerText='Ship Country' width='150' editType='dropdownedit' [edit]='editparams' ></e-column> |
| 8 | + <e-column field='ShipCountry' headerText='Ship Country' width='150' editType='dropdownedit' [edit]='editparams'></e-column> |
9 | 9 | </e-columns> |
10 | 10 | </ej-grid> |
11 | 11 | <div id="description"> |
| 12 | + <p> The Grid supports CRUD operations. This CRUD operations can be configured in Grid using |
| 13 | + <code><a target="_blank" class="code" href="http://ej2.syncfusion.com/angular/documentation/grid/api-editSettings.html"> |
| 14 | + editSettings</a></code>. Also, It has different modes to manipulate the datasource. |
| 15 | + </p> |
| 16 | + <p>The available modes are,</p> |
| 17 | + <ul> |
| 18 | + <li><code>Inline</code></li> |
| 19 | + <li><code>Dialog</code></li> |
| 20 | + <li><code>Batch</code></li> |
| 21 | + </ul> |
12 | 22 | <p> |
13 | | - Batch editing mode is used to send bulk request (add, update and delete) to Grid. You can start editing by double clicking |
14 | | - a cell and can change cell value. Edited cell will be highlighted while navigating to next cell or any other |
15 | | - row, so that you know which fields or cells has been edited. |
| 23 | + In this demo, Batch mode is enabled for Editing by defining <code><a target="_blank" class="code" |
| 24 | + href="http://ej2.syncfusion.com/angular/documentation/grid/api-editSettings.html#mode-string"> |
| 25 | + editSettings.mode |
| 26 | + </a></code> as <code>batch</code>. You can start editing by double clicking a cell and can change cell value. |
| 27 | + The edited cell will be highlighted while navigating to a new cell, so that you know which cells had been edited. |
| 28 | + You can bulk save the edited data to datasource by click on the toolbar's <code>update</code> button or by externally |
| 29 | + invoking the <code><a target="_blank" class="code" |
| 30 | + href="http://ej2.syncfusion.com/angular/documentation/grid/api-edit.html#batchsave"> |
| 31 | + batchSave |
| 32 | + </a></code> method. |
16 | 33 | </p> |
17 | | - <p>In this demo, batch editing is enabled by defining mode as `batch`.</p> |
18 | | - <br> |
19 | 34 | <p style="font-weight: 500">Injecting Module</p> |
20 | 35 | <p> |
21 | 36 | Grid component features are segregated into individual feature-wise modules. To use editing feature, we need to inject |
|
0 commit comments