Dynamic PageSize

2 posts, 0 answers
  1. Yves
    Yves avatar
    17 posts
    Member since:
    Apr 2015

    Posted 16 Nov 2015 Link to this post


     i've got a short question. Is there a build in way to set the PageSize dynamically so that the number of rows displayed will be calculated in relation to the grid height?

    If not i think i will implement it in SizeChanged event. Any suggestions or experiences for that?


    Best Regards,


  2. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    4166 posts

    Posted 19 Nov 2015 Link to this post

    Hello Yves,

    Thank you for writing.
    The RadGridView.PageSize property controls how many rows will be displayed per row. If you need to adjust this property when resizing the grid, you should do it manually. Subscribe to the RadGridView.SizeChanged event and set the desired PageSize considering the TableElement.RowHeight and TableElement.TableHeaderHeight. Additional information about the paging functionality is available on the following link: http://www.telerik.com/help/winforms/gridview-paging-overview.html

    I hope this information helps. Should you have further questions I would be glad to help.
    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
Back to Top