|
[index.js]
export class ContextMenuSample extends SampleBase {
constructor() {
super(...arguments);
----
this.pageSettings = { pageSize: 20 }; // define the pageSize as you want
}
render() {
return (
<div className="control-pane">
<div className="control-section">
<GridComponent
dataSource={this.state.data}-
allowPaging={true}
pageSettings={this.pageSettings}
-----
>
<Inject
services={[
---
Page,
]}
/>
</GridComponent>
</div>
</div>
);
}
}
|
|
// get the grid instances and change the pageSize of the Grid
this.grid.pageSettings.pageSize = 15 ;
|