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

Position of items in the viewport after scrolling

2 Answers 54 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.
Alessandro
Top achievements
Rank 2
Alessandro asked on 07 Sep 2013, 02:11 PM
Hi !

this is my first post in the forums and first of  my compliments for the Windows Phone 8 RadControls ! As a new developer they make my life easier :)

My question is: in DataBoundListBox I have many items to display and I'd like to know which is the first element displayed on the viewport / screen after the user has scrolled the list. (event  ScrollStateChanged where ScrollState is NotScrolling).
I need to display the count of how many items the user has scrolled and are "before".

Thanks in advance.

Alessandro

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 09 Sep 2013, 03:11 PM
Hi Alessandro,

You can use the TopVisibleItem property for that purpose. It will return you the object from your source which is topmost in the ViewPort.

I hope this helps.

Regards,
Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Alessandro
Top achievements
Rank 2
answered on 09 Sep 2013, 06:21 PM
Thanks!
this solved my problem :)
Tags
DataBoundListBox
Asked by
Alessandro
Top achievements
Rank 2
Answers by
Deyan
Telerik team
Alessandro
Top achievements
Rank 2
Share this question
or