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

[Solved] Loading pages dynamically

2 Answers 92 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jeff
Top achievements
Rank 1
Jeff asked on 24 Jun 2011, 05:25 PM
  1. Is there a way to not load all the data for paging. If one has say thousands of records and 90% of the time the user will not really need to page through all of them but yet still give the ability to page, is there a sample for this scenario?I saw this one but it refreshes the whole page. I just want the grid to be refreshed.
  2. On the same topic and assuming the answer is yes to bullet #1, what happens if page 1 is displayed but all the other pages have not been loaded yet and the user filters on the column that does not contain data on page 1, can it go out and grab the data based on the filter without refreshing the whole page?

Both points deal with efficiency and bandwidth and I really hope there's a solution for both. Any detailed insight, links or demos is appreciated.

2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 27 Jun 2011, 07:20 AM
Hi Jeff,

 The grid never loads all pages of data if it is provided a LINQ-enabled IQueryable as a datasource. In fact in all cases only one page is requested. The grid is using LINQ expressions to page, filter, sort and group the data. If the underlying LINQ provider is Entity Framework, NHibernate, LINQ to SQL those linq expressions will be executed in the database and only a single page of data will be returned.

 The custom binding example shows how to do paging, sorting, filtering and grouping if you are not using any of the aforementioned ORMs will LINQ provider capable of translating linq expressions to SQL. We have an ajax enabled version of that example which does not refresh the whole page.

All the best,

Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jeff
Top achievements
Rank 1
answered on 27 Jun 2011, 05:11 PM
Thank you, will take a look.
Tags
Grid
Asked by
Jeff
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Jeff
Top achievements
Rank 1
Share this question
or