I have an example of this here: http://jsfiddle.net/RodEsp/hjbSz/
Using jsfiddle echo to simulate a remote datasource.
Basically, if the dataSource is initialized with data from the beginning (un-comment the //url: "/echo/json/",
line) then everything works perfectly and the listview's <li> elements get initialized properly.
But, if you keep the dataSource empty from at the beginning and then change it by pressing the Refresh button on the navbar, the listview is populated and shows up correctly, but the listview's <li> elements do not get initialized the way they should. They have no data-uid property.
Is this a bug, or am I doing something wrong?
(In my real application this happens when the JSON retrieved for my datasource is an empty array and then is refreshed and recieves a non-empty array)