DevExtreme React Grid is a component that displays table data from a local or remote source. It supports paging, sorting, filtering, grouping and other data shaping options, row selection, and data editing. Support for controlled and uncontrolled state modes allows you to use the Grid in a regular or Redux-based application. The DevExtreme Grid component has a composable and extendable plugin-based architecture and is provided with Twitter Bootstrap and Material-UI rendering and theming out of the box.
Install the dx-react-grid package and its dependencies using the following command:
npm i --save @devexpress/dx-react-core @devexpress/dx-react-grid
This package does not contain visual components. In the examples below, visual components are rendered using the Material-UI package. However, you can use any of the following:
Material-UI
npm i --save @devexpress/dx-react-grid-material-ui
Make sure that the Material-UI dependencies are installed and properly configured. Check the Material-UI's Getting Started article for configuration details.
Bootstrap 4
npm i --save @devexpress/dx-react-grid-bootstrap4
Make sure that the OpenIconic icons are installed and properly configured.
Add the DevExtreme React Grid styles in the root .js file:
import '@devexpress/dx-react-grid-bootstrap4/dist/dx-react-grid-bootstrap4.css';
NOTE: The DevExtreme React Grid does not include Bootstrap CSS.
Bootstrap 3
npm i --save @devexpress/dx-react-grid-bootstrap3
Make sure that the React-Bootstrap dependencies are installed and properly configured. Check the React-Bootstrap's Getting Started article for configuration details.
NOTE: The DevExtreme React Grid does not include Bootstrap CSS so this needs to be installed as well.
React Grid supports the latest stable releases of all major browsers: Google Chrome, Mozilla Firefox, Safari, Opera, and Microsoft Edge.
React Grid can work in other browsers if they use the latest version of WebKit, Blink, or Gecko, whether directly or via the platform's web view API. Some of these browsers may require adding polyfills. However, such browsers, including Internet Explorer, may not work correctly.
React Grid uses the latest web platform standards, and cannot support older browsers like IE11 and Android 4. Use the ES2015 (ES6) polyfill to support these browsers. We recommend BABEL Polyfill, but you can use an alternative.
The Grid renders nothing by default. The root Grid component's nested plugin components implement its functionality, and it is necessary to specify at least one plugin that visualizes the grid data.
Use the Table plugin to display the data as a simple table: