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

Setting Number of Pages in RadDataPager Based on some items count

4 Answers 349 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Maverick
Top achievements
Rank 1
Maverick asked on 30 Mar 2011, 06:49 AM
Hi All ,

I have got a situation here, i have my RadGridView bind with a souce having "X" number of records. I want my RadDataPager to create "Y" number of pages based on the value of Number of Records (X). I dont want to give the same souce to the Pager that i gave to RadGridView. So how can i tell my RadDataPager to virtually create the number of pages based on the total items count in RadGridView ???

Looking Fwd for a Prompt reponse.

Thanx in advance !

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 30 Mar 2011, 07:07 AM
Hi,

 You should create a collection with desired number of items and bind this to the pager. 

Kind regards,
Vlad
the Telerik team
0
Maverick
Top achievements
Rank 1
answered on 30 Mar 2011, 07:25 AM
Hi There,

Actually i have done this already but its not what i want , i want my pager to somehow get the number of records bind to my RadGridView and then create its pages according to that. I dont to bind it with some other collection. Can i do this like if i tell my pager that u have suppose 50 records and then i will tell its page count so that it will do paging accoundingly ?? .. but its does not allow to set the item count in pager because its readonly !
0
Rossen Hristov
Telerik team
answered on 31 Mar 2011, 08:28 AM
Hello Maverick,

You should then use RadDataPager in its Unbound Mode.

Best wishes,
Ross
the Telerik team
0
Maverick
Top achievements
Rank 1
answered on 31 Mar 2011, 11:49 AM
HI ross,

thnx i guess it will work !
Tags
DataPager
Asked by
Maverick
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Maverick
Top achievements
Rank 1
Rossen Hristov
Telerik team
Share this question
or