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

Setting the item to appear first in a RadDataBoundListBox

4 Answers 25 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eitan
Top achievements
Rank 1
Eitan asked on 24 Mar 2015, 05:56 AM
Hi,

I have a Windows Phone 8 application with RadDataBoundListBox with 50 or so items.
How do I set/scroll the ListBox to display a particular item to be first seen by the user?
I thought that BringIntoView will do the trick?

Thanks
Eitan Barazani

4 Answers, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 26 Mar 2015, 10:21 AM
Hello Eitan,

The BringIntoView method ensures that the item is in the viewport but this does not mean that it is the first visible item. The RadDataBoundListBox does not expose any other mechanism that can help you to achieve this.
Regards,
Ivaylo Gergov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Washington
Top achievements
Rank 2
answered on 16 Jul 2015, 07:22 PM

So, how can I achieve this?

If it's not possible, how can I synchronize two RadDataBoundListBox so the TopVisible item be the same on each?

 

0
Rosy Topchiyska
Telerik team
answered on 21 Jul 2015, 04:49 PM
Hello Washington,

You can first call the BringIntoView method to ensure that the desired item is visible. Then you get the offset of the item and set the inner ScrollViewer offset to this value. I have attached a sample that demonstrates this.

I hope this helps.

Regards,
Rosy Topchiyska
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Washington
Top achievements
Rank 2
answered on 22 Jul 2015, 07:41 PM
Awesome. Tnks
Tags
DataBoundListBox
Asked by
Eitan
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Washington
Top achievements
Rank 2
Rosy Topchiyska
Telerik team
Share this question
or