After resetting the grid's state, page and pagesize (UI) are not updated

0 Answers 67 Views
Data Source Grid
iFACTS Admin
Top achievements
Rank 1
iFACTS Admin asked on 10 Jan 2023, 09:48 AM

I am resetting the grid's state like this:


        const $grid = $gridRoot.find('.xifacts-simple-grid');
        const grid = $grid.data('kendoGrid');
        grid.dataSource.filter({});
        grid.dataSource.sort({});
        grid.dataSource.pageSize(5);
        grid.clearSelection();
        grid.dataSource.page(1);

All is good, the grid state is correctly reset (it goes to page 1) - but it still shows the old page that was selected.

Same for the Items/Page.

 

Here is a gif for the issue:

iFACTS Admin
Top achievements
Rank 1
commented on 10 Jan 2023, 11:02 AM

Sorry, guys, this is not an issue from Kendo, we had a custom implementation that I wasn't aware of. 

 

 

We can close this ticket.

No answers yet. Maybe you can help?

Tags
Data Source Grid
Asked by
iFACTS Admin
Top achievements
Rank 1
Share this question
or