Dynamically change the PageSize of RadDataPager

8 posts, 1 answers
  1. Answer
    Telerik Admin
    Telerik Admin avatar
    1679 posts
    Member since:
    Oct 2004

    Posted 01 Feb 2011 Link to this post


    RadControls version

    2010 Q3 SP1
    .NET version

    Visual Studio version

    programming language

    browser support

    all browsers supported by RadControls

    This project shows how to embed a RadComboBox into the template of RadDataPager. Selecting a value in the combobox will change the PageSize property of the datapager automatically. RadGridView is used to display the data.

    Just download the application and rebuild it. It contains all the necessary files.
  2. Michael MSTG
    Michael MSTG avatar
    46 posts
    Member since:
    Aug 2012

    Posted 20 May 2011 Link to this post

    What would be the best approach if I wanted to put this into a resource dictionary so I could use this style across multiple data pagers?

    What I'm looking for is to somehow know what the drop down selected and to know the source binding of that data pager since 99% of the time I'd be using this in a DomainDataSource scenario and the page size would be set there, not on the pager.
  3. Rossen Hristov
    Rossen Hristov avatar
    2478 posts

    Posted 25 May 2011 Link to this post


    How is your question specifically related to Telerik controls?

    In other words, how would you go about this if you were using the stock toolkit DataPager or any other Silverlight control for that matter?

    Thank you for your understanding.

    All the best,
    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
  4. Michael MSTG
    Michael MSTG avatar
    46 posts
    Member since:
    Aug 2012

    Posted 25 May 2011 Link to this post

    The reason I asked is because of some of the custom aspects of the Telerik controls, namely the ability for them all to fire commands.  None the less, we took a different approach instead.  Thanks.
  5. Doug
    Doug avatar
    3 posts
    Member since:
    Aug 2012

    Posted 30 Nov 2012 Link to this post

    I was eager to download, test, study, and then adopt the technique in this code sample. I ran the application, and it worked great. Besides that, It's beautiful! However, when I began to study the XAML, I got lost and simply gave up. It is way too complicated and doesn't seem to use any of the latest Telerik controls mechanisms -- at least not directly. It doesn't even look like you've used the Telerik RadDataPager but that you've hand-coded the equivalent of one. Does your technique work with the standard Telerik RadDataPager? If so, that is what I'd have preferred to see.

    Also, I may be wrong, but at least to me it seemed that all the styling code was mostly obfuscatory. I am currently in the process of editing all that code out so I can study the central code. (I hope it still works after I do that!)

    This is such a cool feature/capability to include in a RadDataPager that I genuinely hope you can build a newer, more XAML-lean version--if possible--and post it here.

    Thank you,

  6. Shawn
    Shawn avatar
    13 posts
    Member since:
    Sep 2010

    Posted 29 Mar 2013 Link to this post

    This sample don't seem to be working with the latest release. Actually it causes the VS to crash. Can you please update it for the latest libraries?
  7. Rossen Hristov
    Rossen Hristov avatar
    2478 posts

    Posted 02 Apr 2013 Link to this post


    I downloaded the sample project, deleted the old references, changed the project to Silverlight 5 and added references to the new assemblies from version 2013 Q1. The project is working as expected. You can find it attached.

    All the best,
    Rossen Hristov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  8. Paul
    Paul avatar
    23 posts
    Member since:
    Feb 2013

    Posted 13 Oct Link to this post

    The download links in this code library seem to be broken. Can you reply with a working link?



Back to Top