5.20193.637
FlexGrid Wijmo API Class

FlexGrid Class

React component that encapsulates the wijmo.grid.FlexGrid control. The example below shows how to instantiate and initialize a wijmo.grid.FlexGrid control in JSX:

<Wj.FlexGrid
  autoGenerateColumns={ false }
  columns={[
    { binding: 'name', header: 'Name' },
    { binding: 'sales', header: 'Sales', format: 'c0' },
    { binding: 'expenses', header: 'Expenses', format: 'c0' },
    { binding: 'active', header: 'Active' },
    { binding: 'date', header: 'Date' }
  ]}
  itemsSource={ this.state.data } />

The code sets the autoGenerateColumns property to false, then sets the columns property, and finally sets the itemsSource property. This order is important, it prevents the grid from automatically generating the columns.

Heirarchy