From b8ff485c540a66139cdbde4d5b49d519cb60966a Mon Sep 17 00:00:00 2001 From: mr-winter Date: Thu, 24 Aug 2017 16:23:36 +1200 Subject: [PATCH] Adds pageSize parameter to initial setData call --- .gitignore | 3 +++ src/components/Grid.jsx | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b4e19cae2..00cdf395f 100644 --- a/.gitignore +++ b/.gitignore @@ -67,3 +67,6 @@ Icon Network Trash Folder Temporary Items .apdisk + +# IDEs +.idea diff --git a/src/components/Grid.jsx b/src/components/Grid.jsx index beda8abb7..4afe24ab6 100644 --- a/src/components/Grid.jsx +++ b/src/components/Grid.jsx @@ -133,6 +133,7 @@ export class Grid extends Component { const { dataSource, gridType, + pageSize, events, plugins, reducerKeys, @@ -152,7 +153,7 @@ export class Grid extends Component { this.setColumns(); - this.setData(); + this.setData({ pageSize }); this.columnManager.init({ plugins,