How to get the number of rows visible?

2 posts, 0 answers
  1. cho
    cho avatar
    1 posts
    Member since:
    Aug 2014

    Posted 04 Aug 2014 Link to this post

    Hi,

    Is there a way to get how many rows are visible and the index of first row showing in the SrollViewer? I have tried to get ScrollViewer to get ViewPortHeight and VerticalOffset, but they are in pixels instead of the the number of items even if I set CanContentScroll=true?

    Thanks in advance.

    Cho
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 05 Aug 2014 Link to this post

    Hello Cho,

    You can find all the realized GridViewRows (currently into view) with the following code 
    var rows = this.clubsGrid.ChildrenOfType<GridViewRow>();

    I attached a possible approach to find the First and Last data objects currently shown in RadGridView. 

    Regards,
    Didie
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top