Dynamic PageSize

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

    Posted 16 Nov 2015 Link to this post

    Hello,

     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,

    Yves

  2. Dess
    Admin
    Dess avatar
    1601 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.
     
    Regards,
    Dess
    Telerik
    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
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top