Position of items in the viewport after scrolling

3 posts, 1 answers
  1. Alessandro
    Alessandro avatar
    24 posts
    Member since:
    May 2013

    Posted 07 Sep 2013 Link to this post

    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. Answer
    Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 09 Sep 2013 Link to this post

    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.
  3. DevCraft banner
  4. Alessandro
    Alessandro avatar
    24 posts
    Member since:
    May 2013

    Posted 09 Sep 2013 Link to this post

    Thanks!
    this solved my problem :)
Back to Top