Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
142052 | Jan 16,2019 07:33 PM UTC | Jan 23,2019 05:25 AM UTC | React - EJ 2 | 3 |
![]() |
Tags: Grid |
<GridComponent
enableHover={false}
allowSelection={true}
allowSorting={true}
selectionSettings={this.cellSelectionSettings}
cellSelecting={this.cellSelection}
dataSource={...}
allowGrouping={true}
allowPaging={false}
allowFiltering={false}
allowSearching={true}
toolbar={this.toolbarOptions()}
allowPdfExport={true}
allowExcelExport={true}
toolbarClick={this.toolbarClick.bind(this)}
pdfExportComplete={this.fileExpComplete.bind(this)}
excelExportComplete={this.fileExpComplete.bind(this)}
groupSettings={this.groupOptions}
queryCellInfo={this.queryCellInfo}
ref={g => (this.grid = g)}
height="100%"
gridLines="Both"
>
<Inject services={[Group, Toolbar, Search, Filter, Sort, ExcelExport, PdfExport, Page, CommandColumn]} />
GridComponent>
public toolbarOptions: any = ['Search'];
render() {
return (
<div className='control-pane'>
<div className='control-section row'>
<GridComponent dataSource={categoryData} toolbar={this.toolbarOptions} allowPaging={true} pageSettings={{ pageSize: 10, pageCount: 5 }} >
…
<Inject services={[Toolbar, Page]} />
</GridComponent>
</div>
</div>
) |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.