View Full Version : Refreshing the page when data changes at background
Hi I want to refresh the page when data changed in the back ground. I am using datachanged event of store nd calling setInterval method to load my store of 5 sec interval. It doesn't work.Please let me know how to refresh the page when data changes at background.
you can use a task runner:
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.util.TaskRunner
or ext.direct with a polling provider:
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.direct.PollingProvider
you need to bind the store to a view control in able to refresh your grid, dataview, tree or whatever.
you can use a task runner:
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.util.TaskRunner
or ext.direct with a polling provider:
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.direct.PollingProvider
you need to bind the store to a view control in able to refresh your grid, dataview, tree or whatever.
Thanks Tobiu,
I was using TaskRunner to refresh my page . But I dont want that way. I never used pollingprovider. need to check, by the way , can I bind my store to xtemplate ? basically I have xtemplate where I have my data there.
you can refresh the data of an container with:
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.AbstractComponent-cfg-tpl
and
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.AbstractComponent-method-update
Powered by vBulletin® Version 4.2.3 Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.