Message In View Event

2 posts, 0 answers
  1. Jason
    Jason avatar
    7 posts
    Member since:
    Nov 2012

    Posted 05 Jul 2013 Link to this post

    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.
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 10 Jul 2013 Link to this post

    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 >>
  3. DevCraft banner
Back to Top