Once the listview is dynamically created you may need to run:
listview.trigger( 'listview' );
Or
listviewcontainer.trigger( 'create' );
EDIT::
$(selector).listview( 'refresh' ), not $(selector).trigger( 'listview' ), is used if you make changes to an existing listview and you want the changes to take effect. Therefore, it would not be applicable here.