Results 1 to 2 of 2

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

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    13
    Vote Rating
    0
      0  

    Default How can I use "Ext.TaskManager.stop", when ever user is entering data on Form Panell

    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
    Code:
    var task_start = {
                run: function(){
                    var allTasks = Ext.StoreManager.lookup('TaskStore');
                    allTasks.removeAll();
                    allTasks.load();
                },
                scope: this,
                interval: 20000 //20 second
            };
            Ext.TaskManager.start(task_start);

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,381
    Answers
    3997
    Vote Rating
    1536
      0  

    Default

    In the keydown event on fields of a form, you can stop() the task.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •