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

Virtual scrollbar with live updating data

1 Answer 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
lostobject
Top achievements
Rank 1
lostobject asked on 05 Apr 2013, 03:21 AM
I am currently evaluating the grid control and am having trouble implementing one of the requirements we have. Our server side data source contains data that is continually updating. When using the virtual scrollbar, the first time you scroll through the dataset, it will request data for the missing rows which is good. The problem is, when you scroll back through the dataset, no new data is requested. It seems to be cached internally in the control. In our case this data is stale and needs to be requested again. 

Here is what I have tried so far:
  1. Using pageable.refresh and clicking the refresh button manually does request new data. But I need to do this programatically.
  2. Using the refresh api on the grid in response to a scroll event does not request new data. It does not appear to be performing the same operation as the refresh button above.
Is there any way to clear the cache or otherwise force a read() of my datasource in this scenario?

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 08 Apr 2013, 03:46 PM
Hello,

You can programatically force a dataSource read by using the read method
In case you would like to read a specific page or change the pageSize, you can work with the query method.

Refresh event of the Grid is not supposed to update the data, it is intended to redraw the widget using the existing data.
I hope this information will help.

Kind regards,
Alexander Valchev
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
lostobject
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or