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

how to use cache inmemory and server filtering

3 Answers 212 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Noel Ouattara
Top achievements
Rank 2
Noel Ouattara asked on 13 Mar 2014, 11:48 AM
hello,
i'm using cache inmemory and i want to customise server filtering, so taht i will populate grid with remote data on specific number of page.
for example on each 10 page.

3 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 17 Mar 2014, 07:03 AM
Hello Noel,

I am not sure I understand your question, please elaborate what exactly you would need from the Grid /DataSource for your case?

Kind Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Noel Ouattara
Top achievements
Rank 2
answered on 19 Mar 2014, 08:11 AM
i want to use both datasource cahe inmemory and grid serverfiltering. what i would like is to get data from server and cache it for the 10 first page of my grid , so between page 1 and page 10 i won't use server filtering. when i will click on page 11, i must be able to get data from the server again and cahe it  .
0
Petur Subev
Telerik team
answered on 20 Mar 2014, 01:11 PM
Hello Noel,

The only way I can think of implementing such behavior is by specifying the read operation as function.

Here is a small example (try to navigate to a page larger than 10) that should give you the basic idea.

http://trykendoui.telerik.com/iTIt

Based on your requirements you can choose to perform your own $.ajax request and get items from the server or you can fetch them from a local variable which you can use as caching bag.

I hope this helps.

Kind Regards,
Petur Subev
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
Noel Ouattara
Top achievements
Rank 2
Answers by
Petur Subev
Telerik team
Noel Ouattara
Top achievements
Rank 2
Share this question
or