GridView paging doesn't work correctly when grouping

4 posts, 0 answers
  1. Ken
    Ken avatar
    104 posts
    Member since:
    Aug 2010

    Posted 03 Nov 2015 Link to this post


    I have the following code:

    <telerik:RadGridView ItemsSource="{Binding PagedSource, ElementName=dataPager}"
         <telerik:GroupDescriptor Member="OwnerTypeDescription"/>
    <telerik:RadDataPager x:Name="dataPager"
                          PageSize="{Binding RecordsPerListPage}"
                          Source="{Binding PagedCollection}"

    The property RecordsPerList page returns 10, however the paging doesn't take this into account and 20+ records are still shown on a single page.

    I noticed that this only happens if grouping is set for the gridview. If I remove the GroupDescriptor paging works properly and only 10 records per page are shown.

    Any idea why this is happening?


  2. Ken
    Ken avatar
    104 posts
    Member since:
    Aug 2010

    Posted 05 Nov 2015 in reply to Ken Link to this post

    This also seems to vary with the PageSize. In my example if I set RecordsPerListPage to 5, in the grouped list i get 12 entries per page, if I set it to 6 I get 13 and if I set it to 7 I get 16.


  3. DevCraft R3 2016 release webinar banner
  4. Petya
    Petya avatar
    973 posts

    Posted 06 Nov 2015 Link to this post

    Hello Adrian,

    The behaviour you're observing is related to the fact that when RadGridView is grouped, the groups are pages and not the individual items. Could you have a look at the Paging Before Grouping example for RadGridView in our demos and check whether the approach suits your needs? 

    I hope this helps. 
    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 Feedback Portal and vote to affect the priority of the items
  5. Ken
    Ken avatar
    104 posts
    Member since:
    Aug 2010

    Posted 09 Nov 2015 in reply to Petya Link to this post

    Hi Petya,

    Thanks for the answer! It seems to work perfectly.



Back to Top