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

[Solved] Pagination Without Total

4 Answers 51 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.
Jose Miguel
Top achievements
Rank 1
Jose Miguel asked on 16 Aug 2011, 10:06 PM
Hello all, is there a way of supporting pagination (as custom binding) without having the total count in advance? i do not require the numbers for pagination only the arrows to go back and forth.

Thanks

4 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 17 Aug 2011, 12:18 PM
Hi Jose,

You can hide the numbers and the status text (if needed) by using the following styles:

div.t-pager .t-numeric
{
    display: none;
}
     
div.t-grid-pager .t-status-text
{
    display: none;
}


Regards,
Georgi Tunev
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
Jose Miguel
Top achievements
Rank 1
answered on 17 Aug 2011, 11:44 PM
Hi, i'm actually more interested douring the custom binding time, it appears that you need to have the "total count of records" up fronth, i'm asking more if we can have pagination without having the total count.
0
Atanas Korchev
Telerik team
answered on 18 Aug 2011, 06:11 AM
Hi Jose Miguel,

 The total count is required in order to determine the number of available pages. I am afraid the grid pagination won't work without total.

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
Adam
Top achievements
Rank 1
answered on 28 Feb 2012, 07:05 PM
Sorry to resurrect this old thread.. however I have a follow up question.

I have a data source over roughly 200 million and I'm using OData (setup like the blog post).

The actual query takes a few MS - however the count takes 10 seconds.  I tried setting .Total on the paging configuration but it seems like that's ignored.  If no filters are applied, I'd like to return a cached value from the server (possibly embedded into the page or something).  If filters are supplied, I'd like to use the default inline count behavior.

I'm using WCF Data services for the backend ... haven't found a way to do it there but still looking.

Any advice?
Tags
Grid
Asked by
Jose Miguel
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Jose Miguel
Top achievements
Rank 1
Atanas Korchev
Telerik team
Adam
Top achievements
Rank 1
Share this question
or