Unplanned
Last Updated: 30 Mar 2021 10:30 by ADMIN
George
Created on: 30 Mar 2021 10:21
Category: Grid
Type: Bug Report
0
Grid with endless scroll does not persist scroll position

Bug report

When the Kendo UI Grid is configured to have endless scrolling and an item is updated on the first page, the scrollbar is reset. If an update is done on a page after the first one, the scroll is correctly persisted.

Reproduction of the problem

1. Set a grid with an endless scroll.

2. Scroll down (without entering the second page).

3. Update an item on the first page.

4. The scroll is reset.

Dojo sample for reference:

https://dojo.telerik.com/EcUKIrAK

Environment

* **Kendo UI version:** 2021.1.330
* **jQuery version:** 1.12.4
* **Browser:** [all]

1 comment
ADMIN
Tsvetomir
Posted on: 30 Mar 2021 10:30

Hi,

It is correct that this behavior is a bug on our side. As a temporary workaround, the following logic should be executed within the edit event handler of the grid:

edit: function(e){
       e.sender.dataSource.options.endless = true;
}

Check out the Dojo that shows the above snippet in action:

https://dojo.telerik.com/iCUQiWiD

 

Regards,
Tsvetomir
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.