Is it possible to switch paging on / off on RadDataPager?

3 posts, 1 answers
  1. Sam
    Sam avatar
    67 posts
    Member since:
    Jun 2011

    Posted 14 Oct 2013 Link to this post


    Hi there, 

    Is there a method for switching a RadDataPager on or off based on bindings?

    We use a RadDataPager in all our grids, but we would like the option for a user to be able to switch paging on and off on specific grids.

    I tried just hiding / disabling the data pager via Visibility and IsEnabled, but it still pages the source data.

    I know I can simulate this by setting Visibility to Collapsed and PageSize to Int32.MaxValue, but I was wondering if there was a less hacky way to disable the pager control.

    Thanks,

    Sam
  2. Answer
    Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 15 Oct 2013 Link to this post

    Hello,

    You can try setting PageSize to 0, which means "no paging". Or you can break the binding between the grid and the pager, i.e. disconnect them.

    Regards,
    Rossen Hristov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Sam
    Sam avatar
    67 posts
    Member since:
    Jun 2011

    Posted 15 Oct 2013 Link to this post


    Thanks, PageSize = 0 actually works very nicely for our requirements.
Back to Top