Languages

Menu
Sites
Language
Refresh Virtual List View

I have a page that loads data from an array. On another page, I can add data to this array. How can I get the virtual list view to update? I've tried pageshow, but get errors that I can't refresh a view before initialization. TIA

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

3 Replies
talari praveen kumar
hi $('#events_list').remove(); var str='<ul id="events_list"><li></ligt;</ul>' ; $ ('#events_list').append(str).trigger('create').listview();
talari praveen kumar
hi try this $('#events_list').remove(); var str='
  • ' ; $ ('#events_list').append(str).trigger('create').listview();
Kevin
Every time you dynamically update a list view you need to call 'refresh' on it like this;
$('#yourlist').listview('refresh');