<GridComponent
height={'100%'}
dataSource={this.state.materialData}
allowSorting={true}
allowFiltering={true}
allowExcelExport={true}
filterSettings={{
type: 'Menu',
columns: [{
field: '__enabled__', matchCase: false,
operator: 'notequal', predicate: 'or', value: ''
}]
}}
rowSelected={this.tableRowClicked}
sortSettings={{ columns: [{ field: 'updated_at', direction: 'Descending' }] }}
dataBound={this.dataBound}
>
<Inject services={[Sort, Filter, ExcelExport]} />
<ColumnsDirective>
<ColumnDirective field='material_id' isPrimaryKey={true} headerText='ID' width="130" />
<ColumnDirective field='material_name' headerText='資材名' filter={{ type: 'CheckBox' }} width="200" />
<ColumnDirective field='model_number' headerText='型式' filter={{ type: 'CheckBox' }} width="180" />
<ColumnDirective field='category_name' headerText='カテゴリー' filter={{ type: 'CheckBox' }} width="200" />
<ColumnDirective field='manufacturer_name' headerText='メーカー' width='150' filter={{ type: 'CheckBox' }} />
<ColumnDirective field='ex_col1' headerText='保管場所' width='150' filter={{ type: 'CheckBox' }} />
<ColumnDirective field='created_at' headerText='登録日' width="170" type="date" format={{ type: "dateTime", format: "yyyy/MM/dd HH:mm" }} />
<ColumnDirective field='updated_at' headerText='更新日' width="170" type="date" format={{ type: "dateTime", format: "yyyy/MM/dd HH:mm" }} />
<ColumnDirective field='__enabled__' headerText='使用中' width='120' filter={{ type: 'CheckBox' }} />
</ColumnsDirective>
</GridComponent >