Setting Number of Pages in RadDataPager Based on some items count

5 posts, 0 answers
  1. Maverick
    Maverick avatar
    11 posts
    Member since:
    Oct 2012

    Posted 30 Mar 2011 Link to this post

    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 !
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 30 Mar 2011 Link to this post

    Hi,

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

    Kind regards,
    Vlad
    the Telerik team
  3. DevCraft banner
  4. Maverick
    Maverick avatar
    11 posts
    Member since:
    Oct 2012

    Posted 30 Mar 2011 Link to this post

    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 !
  5. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 31 Mar 2011 Link to this post

    Hello Maverick,

    You should then use RadDataPager in its Unbound Mode.

    Best wishes,
    Ross
    the Telerik team
  6. Maverick
    Maverick avatar
    11 posts
    Member since:
    Oct 2012

    Posted 31 Mar 2011 Link to this post

    HI ross,

    thnx i guess it will work !
Back to Top
DevCraft banner