Dynamically change the PageSize of RadDataPager

Thread is closed for posting
10 posts, 1 answers
  1. Answer
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 01 Feb 2011 Link to this post

    Requirements

    RadControls version

    2010 Q3 SP1
    .NET version

    4.0
    Visual Studio version

    2010
    programming language

    C#
    browser support

    all browsers supported by RadControls


    PROJECT DESCRIPTION
    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. 271630AA-E8E8-4F11-9E86-9B31212B09B4
    271630AA-E8E8-4F11-9E86-9B31212B09B4 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. EB7F9AD4-2DE1-4DD1-BCD8-B2CD5436430A
    EB7F9AD4-2DE1-4DD1-BCD8-B2CD5436430A avatar
    2477 posts
    Member since:
    Dec 2016

    Posted 25 May 2011 Link to this post

    Hi,

    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,
    Ross
    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. 271630AA-E8E8-4F11-9E86-9B31212B09B4
    271630AA-E8E8-4F11-9E86-9B31212B09B4 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. 61E768D2-6CBB-4675-BA57-FF6B0F94A98E
    61E768D2-6CBB-4675-BA57-FF6B0F94A98E 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,
    Doug

  6. 7B749233-9E17-40C7-AE74-CA8189E94903
    7B749233-9E17-40C7-AE74-CA8189E94903 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. EB7F9AD4-2DE1-4DD1-BCD8-B2CD5436430A
    EB7F9AD4-2DE1-4DD1-BCD8-B2CD5436430A avatar
    2477 posts
    Member since:
    Dec 2016

    Posted 02 Apr 2013 Link to this post

    Hello,

    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. B2328C2E-7DF8-4C27-9B2E-10733C002724
    B2328C2E-7DF8-4C27-9B2E-10733C002724 avatar
    23 posts
    Member since:
    Feb 2013

    Posted 13 Oct 2016 Link to this post

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

    Thanks,

    Paul

  9. 49BB89B7-07FA-430E-A2DA-D1B9604E7172
    49BB89B7-07FA-430E-A2DA-D1B9604E7172 avatar
    1 posts
    Member since:
    Aug 2016

    Posted 16 Aug 2017 Link to this post

    how can i change cobobox's ItemsSource ,because i want to take the list as a parameter through by converter.how can i do that,do i need to override the datapager
  10. B427B827-A448-408F-8F34-447420642CDF
    B427B827-A448-408F-8F34-447420642CDF avatar
    31 posts
    Member since:
    Apr 2011

    Posted 04 Mar 2019 Link to this post

    Does this code work with the latest RadDataPager? The code is broken with the latest dlls.
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.