This question is locked. New answers and comments are not allowed.
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
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
0
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
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
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
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