How to find all children (both visible and those which are visible after scrolling) of control

2 posts, 0 answers
  1. Prachi
    Prachi avatar
    8 posts
    Member since:
    Dec 2010

    Posted 11 May 2011 Link to this post

    How to find All children i.e. both visible and those which are visible after scrolling of a control (say ListBoxView or Combobox).
    I am using Control.Find but it finds only visible children of that control.

    For example,
    I want to select a list box item having text "z" on it and index of that item is not fixed and that list item is currently not visible.

    Can anyone help me out in this?

  2. Dobry Zranchev
    Dobry Zranchev avatar
    348 posts

    Posted 16 May 2011 Link to this post

    Hi Prachi,

    Thank you for writing.

    Is this for a Silverlight application? As I know ListBoxView or ComboBox controls support Data Virtualization of their visual items. Unfortunately this means that you have no access to the visual items that are not visible in the list. This is a Silverlight limitation. Silverlight only puts in the Visual Tree (which is what we access and rely on) those items that are needed to draw the UI. If you want to access item that is not visible you have to scroll to it.

    I case that you have other related questions, fell free to write us.

    Best wishes,
    Dobry Zranchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top