View Full Version : How can I use "Ext.TaskManager.stop", when ever user is entering data on Form Panell

19 May 2012, 7:08 PM
Hi ,
I have task viewer running on each page in the bottom, which needs to be reloaded every 20 sec.
And I got the code working fine with "Ext.TaskManager.start", but when user is doing some other task ,like entering data in form panels, the moment reload happens, the mouse control is going away.
How can we use "Ext.TaskManager.stop", so it does not impact user?

This is how my code looks like

var task_start = {
run: function(){
var allTasks = Ext.StoreManager.lookup('TaskStore');
scope: this,
interval: 20000 //20 second

25 May 2012, 11:15 AM
In the keydown event on fields of a form, you can stop() the task.