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

Disable prefetch

3 Answers 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 21 Jan 2015, 12:37 AM
Is it possible to disable the prefetch in a grid with virtual scrolling enable?

The virtualScrollable object seems to have an options for this but I couldn't manage to change it:

grid.virtualScrollable.options.prefetch = false;

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 22 Jan 2015, 02:31 PM

Hello Simon,

The prefetch option is an internal one and cannot be changed. All the available options/methods/events are available as part of the Kendo UI Grid documentation:

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid

The prefetch option cannot be changed, and any changes might result in faulty behavior of the virtualization functionality.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Simon
Top achievements
Rank 1
answered on 22 Jan 2015, 04:00 PM
Hello Kiril,

That's a bit odd since grid has an internal variable to disable the prefetch.

I understand that the prefetch is there to increase the grid performance, but this is also preventing us from implementing our own cache system.  I already mentioned that the grid is triggering many unnecessary requests in this post.  Dino confirmed the problem was created by the prefetches. In large systems, we can't denied the global performance issue caused by those request.

An other options (and probably the best one) would be to specify if the grid request is a fetch or a prefetch in the readOptions parameter passed to the transport.read.  That way, we would have the choice to create a normal request, implement our own logic or to simply ignore the request (if the success callback can handle an empty result).

Please, take a moment to consider providing us flexible prefetch options.  I'm not developing for Telerik, but after looking at the source code, I think small changes in the grid would allow way more flexibility in the grid behavior.

Best regards,

Simon
0
Kiril Nikolov
Telerik team
answered on 26 Jan 2015, 08:11 AM
Hello Simon,

Thanks for the suggestions!

I will put them together and forward them to the people behind the virtualization functionality of the grid. In the mean time you can check our UserVoice section, where you can always post any suggestions that you have for our products, as all posts there are reviewed and considered for future implementation.

Regards,
Kiril Nikolov
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
Simon
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Simon
Top achievements
Rank 1
Share this question
or