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
Thanks
4 Answers, 1 is accepted
0
Hi Jose,
You can hide the numbers and the status text (if needed) by using the following styles:
Regards,
Georgi Tunev
the Telerik team
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
Hi Jose Miguel,
Atanas Korchev
the Telerik team
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?
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?