View Poll Results: How many parts in a page you need to auto refresh?
- Voters
- 3. You may not vote on this poll
-
1
0 0% -
2
1 33.33% -
3
0 0% -
4
1 33.33% -
5
1 33.33% -
6
0 0% -
7
0 0% -
8
0 0% -
9
0 0% -
> 9
0 0%
-
6 Jan 2009 10:20 AM #11
-
6 Jan 2009 10:49 AM #12
-
22 Mar 2009 7:51 PM #13
Hi jratcliff,
I extended the Panel object to write a custom widget. It is displaying the data properly. Then i applied the auto refresh functionality but it is not working.
Can you help me in solving this problem?
Here is my code
------------------
Code:Example.ux.widget.icare = Ext.extend(Ext.Panel, { id : 'id-panel-icare', title : 'Auto Refresh Example', border : true, initComponent : function() { this.html = 'Loading data.........', Example.ux.widget.icare.superclass.initComponent.apply(this, arguments); }, onRender : function() { //this.load(); // --this works fine. this.getUpdater().startAutoRefresh(60, load, true); Example.ux.widget.icare.superclass.onRender.apply(this, arguments); }, load: function(config) { var config = config || {}; Ext.apply(config, { url:'/Dashboard/status?data=icare', success: this.onLoad, failure: this.onFailure, scope: this }); Ext.Ajax.request(config); }, onLoad: function(response, opts) { var json = Ext.decode(response.responseText); var tpl = new Ext.Template( '<p>Pending TR Count: {pendingTRCount}</p>' ); tpl.overwrite(this.body, json[0]); }, onFailure: function() { Ext.Msg.alert('Fail', 'Error occured while getting iCARE pending records count.'); } }); Ext.reg('icarepanel', Example.ux.widget.icare);
-
28 Oct 2012 10:05 PM #14
Panel Refreshing After every 8 Seconds
Panel Refreshing After every 8 Seconds
//8 Seconds Interval refresh for Grid - Working
var interval = setInterval(function() {
var store = Ext.StoreMgr.lookup('gridId');
tasksummary_store.reload();
}, 8000);





Reply With Quote