In this project, you will see how to enable editing in the React Data Grid with the edit toolbar. You will also see about different inbuilt editing types like TextBox, Numeric TextBox, Drop Down List and Date picker. Learn how to add custom component to the cell editing type. Also learn about the different editing modes such as Normal, Batch and Dialog. Finally, know how to add your own custom template for the Dialog editing mode.
Watch the video now:
Documentation: https://ej2.syncfusion.com/react/documentation/grid/edit/
Online samples: https://ej2.syncfusion.com/demos/#/material/grid/normal-editing.html
Make sure that you have the compatible versions of TypeScript and React in your machine before starting to work on this project.
- React 15.5.4+
- TypeScript 2.6+
To run this application, you need to first clone the different-editing-modes-and-custom-edit-template-in-react-data-grid
repository and then navigate to its appropriate path where it has been located in your system. The before folder has the starter code of the application and the after folder has the completed code of the application.
Open the command prompt and run the below commands one after the other.
git clone https://github.com/SyncfusionSamples/how-to-perform-CRUD-operations-on-angular-grid-using-observable-and-async-pipes my-app
cd my-app/before
Once done with downloading, next you need to install the necessary packages required to run this application locally. The npm install
command will install all the needed React packages into your current project and to do so, run the below command.
npm install
Run npm start
command for a dev server. Navigate to http://localhost:3000/
. The app will automatically reload if you change any of the source files.