@@ -1430,7 +1430,7 @@ public class CRUDModel<T> where T : class
1430
1430
1431
1431
** Insert Operation :**
1432
1432
1433
- To insert a new row , simply click the ** Add ** toolbar button . The new record edit form will be displayed as shown below . Upon clicking the ** Update ** toolbar button , record will inserted into the ** Orders ** table by calling the following ** POST ** method of an API .
1433
+ To execute the insert operation , you will need to override the ` insert ` method of the ` CustomAdaptor `. Then , integrate the following code snippet into the ` CustomAdaptor ` class . The below code snippet demonstrated how to handle the insertion of new records within the ` insert ` method of ` CustomAdaptor `. Modify the logic within this method according to the requirements of your application .
1434
1434
1435
1435
{% tabs % }
1436
1436
{% highlight cs tabtitle = " GridController.cs" % }
@@ -1518,7 +1518,7 @@ public IHttpActionResult Insert(CRUDModel<Orders> value)
1518
1518
1519
1519
** Update Operation :**
1520
1520
1521
- To edit a row , first select desired row and click the ** Edit ** toolbar button . The edit form will be displayed and proceed to modify any column value as per your requirement . Clicking the ** Update ** toolbar button will update the edit record in the ** Orders ** table by involving the following ** Post ** method of an API .
1521
+ To execute the update operation , override the ` update ` method of the ` CustomAdaptor `. Then , integrate the following code snippet into the ` CustomAdaptor ` class . The below code snippet demonstrated how to handle the updating of existing records within the ` update ` method of the ` CustomAdaptor `. Modify the logic within this method according to the requirements of your application .
1522
1522
1523
1523
{% tabs % }
1524
1524
{% highlight cs tabtitle = " GridController.cs" % }
@@ -1607,7 +1607,7 @@ public IHttpActionResult Update(CRUDModel<Orders> value)
1607
1607
1608
1608
** Delete Operation **
1609
1609
1610
- To delete a row , simply select the desired row and click the ** Delete ** toolbar button . This action will trigger a ** DELETE ** request to an API , containing the primary key value of the selected record . As a result corresponding record will be removed from the ** Orders ** table .
1610
+ To perform the delete operation , you need to override the ` remove ` method of the ` CustomAdaptor `. Below is the code snippet that you can add to ` CustomAdaptor ` class . The below code snippet demonstrated how to handle the deletion of existing records within the ` remove ` method of ` CustomAdaptor `. Modify the logic within this method according to the requirements of your application .
1611
1611
1612
1612
{% tabs %}
1613
1613
{% highlight cs tabtitle = " GridController.cs" % }
@@ -1692,7 +1692,7 @@ public IHttpActionResult Remove(CRUDModel<Orders> value)
1692
1692
1693
1693
** Batch Operation **
1694
1694
1695
- To perform batch operation , define the edit ` Mode ` as ** Batch ** and specify the `BatchUrl ` property in the ` DataManager `. Use the ** Add ** toolbar button to insert new row in batch editing mode . To edit a cell , double - click the desired cell and update the value as required . To delete a record , simply select the record and press the ** Delete ** toolbar button . Now , all CRUD operations will be executed in single request . Clicking the ** Update ** toolbar button will update the newly added , edited , or deleted records from the ** Orders ** table using a single API POST request .
1695
+ To perform the batch operation , override the ** batchRequest ** method of the `CustomAdaptor ` and add the following code in the ` CustomAdaptor `. The below code snippet demonstrated how to handle the batch update request within the ** batchRequest ** method of ` CustomAdaptor `. Modify the logic within this method according to the requirements of your application .
1696
1696
1697
1697
{% tabs % }
1698
1698
{% highlight cs tabtitle = " GridController.cs" % }
0 commit comments