Retrieve actual count of items of the RadGridView

4 posts, 0 answers
  1. Adi
    Adi avatar
    25 posts
    Member since:
    Jun 2010

    Posted 19 Oct 2010 Link to this post

    Hi All,

    I am new to WebUI Studio and any help would be highly appreciated. I am doing kind of a verification wherein I compare the no of items in Silverlight telerik RadGridView to the actual count (which obviously is predetermined). However, when I try to use the webUI widget  verify count, the count seems to reflect only the no. of rows which fit in the grid at that time (I believe due to underlying virtualization). It would be of great help, if someone could suggest a work around to get the actual count of no. of items rather than just the no. of rows that fit in radgridview.

  2. Yordanka
    Yordanka avatar
    634 posts

    Posted 21 Oct 2010 Link to this post

    Hello Adi,

    The UI virtualization in RadGridView is turned on by default. This means that only the visible rows in the viewport are created. Therefore, Row count verification returns the items in the viewport. Currently, we are working on improving the behavior when working with virtualized rows but we cannot commit to any specific date when this will be addressed.
    As a temporary workaround, you can try to turn off vertical virtualization (EnableRowVirtualization="False") in case your scenario allows. In this way Row count verification will return all items count.

    All the best,

    the Telerik team


    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 Public Issue Tracking system and vote to affect the priority of the items
  3. Bala
    Bala avatar
    1 posts
    Member since:
    Sep 2011

    Posted 28 Sep 2011 Link to this post

    Yordanka ,

    Here we dont have previliges to change the gridview it possible to disable this property EnableRowVirtualization="False" through visual studio plugin after recoding the action.

    RadGridView grid = Pages.Test.SilverlightApp.RadGridView;
    IList<GridViewRow> rows = grid.Find.AllByType<GridViewRow>();

    here we are getting the rows of current page in grid.

  4. Stoich
    Stoich avatar
    1 posts

    Posted 03 Oct 2011 Link to this post

    Hi Bala,
        Test Studio will not be able to change the Property of the GridView. The only way to change the properties of the GridView is by implementing the changes directly in your Silverlight project and then rebuilding and deploying it.

    You can try getting the count for the first page and storing it in a variable. Then invoking an action that will move the browser to the next page. Now you can get the count for this page and add it to the count from the previous page etc.

    All the best,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!