-
3 Feb 2011 10:40 AM #1
Grid Auto-Refresh possible?
Grid Auto-Refresh possible?
I've got my first widget working (hurrah!)
One final thing to get working, I need the data (loaded initially via Ajax) to auto-refresh every minute.
I can see ways to do this by editing the exported project files, but that means I can't use Ext Designer again, doesn't it?
Is this possible? Any pointers welcome.
Rachel
-
3 Feb 2011 11:39 AM #2Sencha - Desktop Packager Dev Team
- Join Date
- Mar 2007
- Location
- Baltimore, MD.
- Posts
- 1,745
- Vote Rating
- 5
Hi Rachel,
First off, congrats
The exported xds_* files are not necessarily meant to be used verbatim. They are only quick "preview" files, so you can load your exported components into ABC browser to preview them. The only true takeaway from your exported project are your component files (.ui.js and .js files for each component/store), which you would include into your application and use accordingly. The xds_* files do provide a good "jump start" to copy from of course.
Also, in your project preferences, you can uncheck "Export xds_* Files" and your xds_* files will no longer be exported/overwritten. That of course also means that they aren't updated if you add new top-level components to your project.
So with all of that in mind, you can of course get a reference to your store and reload it every minute:
Hope that helps!Code:var interval = setInterval(function() { var store = Ext.StoreMgr.lookup('myStoreId'); store.reload(); }, 60000);
-
3 Feb 2011 12:22 PM #3
-
8 Feb 2011 2:22 AM #4
Ext GWT Grid
Ext GWT Grid
How to refresh Ext Gwt Grid after some interval?
-
8 Feb 2011 6:01 AM #5Sencha - Desktop Packager Dev Team
- Join Date
- Mar 2007
- Location
- Baltimore, MD.
- Posts
- 1,745
- Vote Rating
- 5
ukchaudhary, post on the GXT forums

-
11 May 2012 8:21 PM #6
I am also trying to find a way to auto Refresh my grid rows in some interval,
I see you have code snippet, but where is it suposed to be called from ?
Where should we defing reference to store?
where should this code be placed
var interval = setInterval(function() {
var store = Ext.StoreMgr.lookup('myStoreId');
store.reload();
}, 60000);
???
Thank you !!
Similar Threads
-
Auto refresh of a Grid Data
By chazzz2473 in forum Ext GWT: DiscussionReplies: 6Last Post: 10 Jun 2011, 12:03 PM -
Grid Auto Refresh
By border9 in forum Ext 2.x: Help & DiscussionReplies: 7Last Post: 9 Jun 2010, 5:50 AM -
How to auto refresh data grid.
By khoivu4477 in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 1 Dec 2009, 11:55 PM -
How to auto refresh grid content every x ms
By gkassyou in forum Ext 1.x: Help & DiscussionReplies: 7Last Post: 21 Aug 2009, 4:30 AM -
Auto refresh grid data
By sayanb in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 6 Mar 2008, 8:47 AM


Reply With Quote