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

Updating the total number of rows with virtual scrolling and serverPaging

1 Answer 151 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 13 Mar 2012, 09:31 PM
We have a continuously changing data set on the server, with the total number of rows usually increasing but occasionally being reduced. We return the total number of rows in each json response, and use the datasource schema to dynamically update the total.

This works most of the time, but when reducing the number of rows while the grid is scrolled down causes a stack oveflow in the grid component. This only happens for some page sizes and row counts.

This example emulates a server initially offering 125 rows. When the button is clicked the total number of rows on the server is reduced to 47. The grid crashes with a stack overflow if the grid is scrolled down to the last page before clicking the button:

http://jsfiddle.net/GrhJg/ 

1 Answer, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 14 Mar 2012, 02:14 PM
Hi John,

We were able to find the cause for the described behavior and the fix will be included in the next official version of Grid widget. I have updated you telerik points as a token of gratitude.

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