hi,
I am using KendoReact grid and paging and have a grid something like below. we have some filters outside the grid that are applied on grid. And we are using react-redux to preserve the filters state so that grid can be recreated again as per the filters selected on redirection.
can we also add the pagesize to redux so that its value can also be preserved and the same number of records remain selected or shown on redirection.
I am not sure if there is any event that we can use for this purpose. any help will be appreciated.
<Grid
sortable
filterable
resizable
reorderable
pageable={{
buttonCount: 4,
pageSizes: [10, 20, 50, 100, formsList.length],
}}
data={process(formsList, dataState)}
{...dataState}
onDataStateChange={(e) => {
setDataState(e.data);
}}
cellRender={customCellRender}
headerCellRender={customHeaderRender}
>
{user && isAuthenticated && user.isAdmin && (
<GridToolbar>{getFormFilters()}</GridToolbar>
)}
<GridColumn field="formNumber" title="Number" />
<GridColumn width="300px" field="formTitle" title="Form Title" />
<GridColumn
width="200px"
field="formattedRevisionDate"
title="Revision Date"
headerClassName="text-wrap"
filter={"date"}
format="{0:M/d/yyyy}"
/>
<GridColumn field="formStatus" title="Status" />
<GridColumn field="notes" title="Notes" />
<GridColumn field="responsibleOffice" title="Office" width="175px" />
<GridColumn
field="procedureNumber"
title="Procedure"
cell={procedureCell}
/>
<GridColumn
title="Available Formats"
field="attachmentTypes"
cell={attachmentsCell}
headerClassName="text-wrap"
/>
<GridColumn
filterable={false}
sortable={false}
title="Actions"
cell={actionsCell}
/>
</Grid>