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

    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,379
    Answers
    3997

    Default

    In the keydown event on fields of a form, you can stop() the task.
    Mitchell Simoens @LikelyMitch

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

    Posts are my own, not any current, past or future employer's.

Posting Permissions

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