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

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

2 Answers 79 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 15 Oct 2013, 03:52 AM

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 Answers, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 15 Oct 2013, 06:08 AM
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 >>
0
Sam
Top achievements
Rank 1
answered on 15 Oct 2013, 06:43 AM

Thanks, PageSize = 0 actually works very nicely for our requirements.
Tags
DataPager
Asked by
Sam
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Sam
Top achievements
Rank 1
Share this question
or