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

Message In View Event

1 Answer 24 Views
ConversationView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jason
Top achievements
Rank 1
Jason asked on 05 Jul 2013, 09:53 AM
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

Sort by
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 >>
Tags
ConversationView
Asked by
Jason
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or