Results 1 to 2 of 2

Thread: clock in grid

  1. #1
    Sencha User
    Join Date
    Jan 2008
    Posts
    212
    Answers
    3

    Default Answered: clock in grid

    hi,

    is it possible with extjs to create a grid with a column with the value for example "18:45:16" and after rendering the grid this time column is running? so every second the value is changing?

    thx!

  2. Given a grid with a store, identify the record(s) you want to modify and use Ext.TaskManager to automate the update process.

    Code:
    MyApp.autoUpdater = Ext.TaskManager.start({
        interval: 1000,
        run: function(){
             var record = MyApp.getSomeRecord(); // get record you want to update
            record.set('date_field', new Date());
        }
    });
    Or something like that.

  3. #2
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    72
    Answers
    6

    Default

    Given a grid with a store, identify the record(s) you want to modify and use Ext.TaskManager to automate the update process.

    Code:
    MyApp.autoUpdater = Ext.TaskManager.start({
        interval: 1000,
        run: function(){
             var record = MyApp.getSomeRecord(); // get record you want to update
            record.set('date_field', new Date());
        }
    });
    Or something like that.

Tags for this Thread

Posting Permissions

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