By default, addRecord method will add an empty row to the Grid while the Batch edit mode is enabled. However, if the addRecord is called with object or data, it will save the record. In some scenarios, it is required to add rows with values or data but not to save. This case can be handled by calling the addRecord method followed by setDefaultData method of the Grid.
This KB demonstrates these methods in the button click events. Render the Grid control with the button.
Now, define click event for both the buttons.
Figure 1. On Adding Empty Rows.
Figure 2. Adding rows with values.
This page will automatically be redirected to the sign-in page in 10 seconds.