Get All Invisible Elements

4 posts, 0 answers
  1. Anton
    Anton avatar
    54 posts
    Member since:
    Sep 2011

    Posted 27 Sep 2011 Link to this post


    How can I get all invisible elements with a spicified type?
    There are few hundreds <DataGridRow> elements under scrollbar. and only 9 is visible.
    Silverlight Spy and WebAii return only 9(if I found with "....Find.AllByType<DataGridRow>().Count).

  2. Anthony
    Anthony avatar
    19 posts

    Posted 27 Sep 2011 Link to this post

    Hi Anton,

    The issue is that Silverlight virtualizes data in containers, such as your grid. This means the Silverlight visual tree only contains the data necessary to render the UI, which in your case is 9 at a time.

    You'll have to scan what is currently in the Silverlight visual tree, scroll the grid by one page, and scan again. Here is an example on how to do that with a Listbox. 

    Best wishes,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. alina
    alina avatar
    1 posts
    Member since:
    Jun 2013

    Posted 26 Nov 2013 Link to this post


    I'm having the same problem that is mentioned here.
    Can I have access to the example from this link (that is attached to this topic) ?

    Thank you,
  4. Velin Koychev
    Velin Koychev avatar
    88 posts

    Posted 29 Nov 2013 Link to this post

    Hi Alina,

    This is the correct link that you can use -

    Let me know if you need any additional assistance. 

    Velin Koychev
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top