Maximize productivity with
30% off* for a limited time
using BOOSTDEV30.
Includes 3- and 5-packs.
*Some exclusions may apply.New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.
export class Default extends SampleBase {
show() {
var gridInst = document.getElementsByClassName("e-grid")[0].ej2_instances[0];
var data = gridInst.getPersistData(); // here you can get the persisted data
console.log(JSON.parse(data));
}
render() {
this.show = this.show.bind(this);
return (<div className='control-pane'>
<div className='control-section'>
<ButtonComponent cssClass= 'e-flat' onClick= { this.show }>Show</ButtonComponent>
<GridComponent dataSource={orderDetails} allowFiltering={true} allowPaging={true} enablePersistence={true} ref={g => this.grid = g} height='350'>
<ColumnsDirective>
<ColumnDirective field='OrderID' headerText='Order ID' width='120' textAlign='Right'></ColumnDirective>
. . . . .
</ColumnsDirective>
<Inject services={[Filter, Page]} />
</GridComponent>
</div>
</div>);
}
}
render(<Default />, document.getElementById('sample')); |