locked
ListView.loadingstatechanged cets called 3 times on initial load and 5 times on reload

    Question

  • I set up an event listener to my List View using ListView.loadingstatechanged. In the even listener I put a call to console.info so I could see that it is being called. When the app first loads I get the info message 3 times, and when the page is reloaded it is fired 5 times. Shouldn't this only be called once?

    Thanks,

    Todd

    Sunday, April 29, 2012 3:36 AM

Answers

All replies

  • So it looks like eventInfo.details is null the first time, then it has a value followed by null again. So I've figured out how to do what I need just by watching this value. Still would like to know more about what's going on here.

    Todd

    Sunday, April 29, 2012 4:07 AM
  • Put a breakpoint in your event handler and step out.  You will be able to see what is triggering this.


    Jeff Sanders (MSFT)

    Monday, April 30, 2012 7:14 PM
    Moderator