JQuery Mobile listview lose search filter functionality after ajax call
===

I have a list like this

    <ul data-role="listview" id="list" data-filter="true"></ul>

it looks good on startup and get a nice (working filter/search-bar). 

But then I add some rows (li) to the list with an ajax call. 

     $('#list').append('<li>item</li>');

Then I reload the list to get it to rerender the list with the nice JQM UI. 

    $("#list").listview();

My problem is that after this the filter/searchbar stops working.
(It is stil displayed but it is not filtering). 

I have tried to add the whole list in the callback (putting a <div id="placeholder" /> in the html and then readding the whole list (append('<ul... ) in the ajax callback. But then it doesn't display the searchbar at all. 

Any suggestions on how to hook the search function back on again? 