In order to reset new data when your data have been updated by somewhere, you need to call reset() from getRecordSet() of datatable object. Then, call setRecords() by passing your new data. If you have paginator, you also have to update it by calling setPage() to its current page and reset the total number of record.
dataTable.getRecordSet().reset();
dataTable.getRecordSet().setRecords(newData);
dataTable.refreshView();
//refresh paginator
dataTable.get("paginator").setPage(dataTable.get("paginator").getCurrentPage());
dataTable.get("paginator").set("totalRecords", dataTable.getRecordSet().getLength());
6 comments:
check out the "onDataReturnInitializeTable"...
API is here: http://developer.yahoo.com/yui/docs/YAHOO.widget.DataTable.html
if you refresh your dataSource this function will reset the table discarding previous data.
Thanks
Here I have intention to use data from local db which I get from google gears.
Hellol thr, thanx a lot for this article .. This was exactly what I was looking for.
top [url=http://www.001casino.com/]001casino.com[/url] brake the latest [url=http://www.realcazinoz.com/]free casino[/url] autonomous no consign bonus at the foremost [url=http://www.baywatchcasino.com/]casino games
[/url].
vqyezpfxf www.louisvuittonluggageonline.com ifplyzxca [url=http://www.louisvuittonluggageonline.com]louis vuitton discount[/url] jmzkpbbus
wpkpfqedq www.louisvuittononlineshoes.com ntdwsbgoo [url=http://www.louisvuittononlineshoes.com]louis vuitton wallet for women[/url] fnirsfkqe
xymjdjpcr www.louisvuittonreplicbagsonline.com vsxfcweqm [url=http://www.louisvuittonreplicbagsonline.com]louis vuitton shoes[/url] yiofkssjg
lqhejzrbp www.newdiscountlouisvuittonhandbag.com eimzlukms [url=http://www.newdiscountlouisvuittonhandbag.com]louis vuitton handbags usa[/url] dkwyvlxxr
mqxuvorwk www.louisvuittonhandbagson-sale.com rdfhvvaiw [url=http://www.louisvuittonhandbagson-sale.com]louis vuitton handbags[/url] ogebguorj
mes sources dolabuy.co cliquez ici réplique dolabuy regardez ce que j'ai trouvé portefeuilles de répliques
Post a Comment