Number of Rows visible in GridView

6 posts, 0 answers
  1. Clinton
    Clinton avatar
    22 posts
    Member since:
    May 2011

    Posted 12 Feb 2012 Link to this post

    Hi there,

    I'd like to set the GridView to show a "paged" view of data.  For business rules reasons, we're unable to use the RadDataPager.

    Is it possible to get 100 records, put them into the RadGridView and then return the number of visibleRows without scrollbars appearing?

    I also tried to get the radGridView.VisibleRowsHeight value, but without success.

    Any help is appreciated.

    Clinton
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 13 Feb 2012 Link to this post

    Hello,

     Are you looking for our virtual collection

    Greetings,
    Vlad
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. Clinton
    Clinton avatar
    22 posts
    Member since:
    May 2011

    Posted 13 Feb 2012 Link to this post

    Hi Vlad,

    Nope, I do not believe so.

    FYI, we're using Dynamic Data, and the Columns are generated at Runtime.  There is no Model as such it's all programmatic.

    What we need is to be able to retrieve the actual number of records that exist in a GridView that doesn't have scrollbars active.  This means, that if the GridView can show 25 records, regardless of whether we give it 100 or 1000 records, it will tell us that 25 rows are displayed to the user.

    The Grid will have to be locked as to not enable scrolling.

    I'm not sure if virtual collection can do this?

    Thanks Vlad for all your help.

    Clinton
    HardCat Pty Ltd
  4. Josef Rogovsky
    Josef Rogovsky avatar
    147 posts
    Member since:
    Sep 2012

    Posted 01 Jun 2012 Link to this post

    I just now submitted a support ticket for basically the same question.

    I need to dynamically change the page site on a domaindatasource to match the # of rows a gridview is able to display.

    Let me know if you figured this out Clinton. If not, I'll let you know what answer I get on my ticket.

  5. vk
    vk avatar
    46 posts
    Member since:
    Jul 2012

    Posted 18 Jun 2012 Link to this post

    Hi Josef,

    Did you manage to solve this task?
  6. Anusha
    Anusha avatar
    2 posts
    Member since:
    Jul 2012

    Posted 18 Dec 2012 Link to this post

    Hello,
            I am using radgridview in silverlight.I am generating columns at run time.I want to know how to show number of rows like 1 to 50 of 71 .



    Thanks,


     
Back to Top