This is a migrated thread and some comments may be shown as answers.

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

1 Answer 37 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Prachi
Top achievements
Rank 1
Prachi asked on 11 May 2011, 12:24 PM
Hello,
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?

Thanks,
Prachi

1 Answer, 1 is accepted

Sort by
0
Dobry Zranchev
Telerik team
answered on 16 May 2011, 03:39 PM
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 >>

Tags
General Discussions
Asked by
Prachi
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
Share this question
or