PDA

View Full Version : clock in grid



Richie1985
29 Apr 2013, 8:46 AM
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!

eric.cook
29 Apr 2013, 10:01 AM
Given a grid with a store, identify the record(s) you want to modify and use Ext.TaskManager to automate the update process.



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.