Is there a way to capture which messages are in viewport.
I want to update the status of the message to 'viewed', but only when the messages has been viewed and not when it's scrolled off the bottom or top of the viewport.
1 Answer, 1 is accepted
0
Victor
Telerik team
answered on 10 Jul 2013, 08:04 AM
Hello Jason,
Thanks for writing.
You can use the ScrollStateChanged event of RadDataBoundListBox. In this event, you can listen for the scrolling state. While the list box in a scrolling state you have to start a timer that ticks at some interval (500 ms for example). In the timer tick handler you can check the ViewportItems property to see which items are in the list box viewport and mark them as read.
I hope this helps.
Regards,
Victor
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely. Sign up for Free application insights >>