This is a migrated thread and some comments may be shown as answers.

Virtual scrolling + grid.removeRow == crash

1 Answer 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ewald
Top achievements
Rank 1
Ewald asked on 23 Jan 2014, 05:13 AM
Context:
1. virtual scrolling enabled in the grid
2. pagesize = 10

Steps to reproduce:
1. Call the removeRow 5 times
2. Now scroll to the bottom of the grid so new records are pulled in

Expected:
The row pages in the next set of records (rows 6-15)

Actual:
The browser crashes. I don't see an error logged in Chrome

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 27 Jan 2014, 09:52 AM
Hi Ewald,

I am afraid that virtual scrolling is currently not supported when adding or removing items from the DataSource. Virtual scrolling uses ranges instead of pages to determine which items to be displayed and adding a new item or deleting an existing one results in miscalculated ranges, which in turn breaks the scrolling. 

Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Ewald
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or