View Full Version : How to update store at new value in DateField?

3 Sep 2009, 1:08 AM

I am using Ext.grid.EditorGridPanel. One column has a date and once this field gets changed it should do an action.

Relevant parts of my column:

dataIndex: "date_sel",
renderer: formatDate,
editor: new Ext.form.DateField({
allowBlank: false,
format: 'Y/m/d',
listeners: {
'select': function(field,date) {
console.log("selected new date");
// do I need to update store manually here??
Assume the field has a preset value of 2009/01/01.
Now I change the date to 2009/09/20 and once changed the select listener fires.
The correct new date is shown in the cell, it is 2009/09/20.

When I output the store of the EditorGridPanel the value is still 2009/01/01. When I edit the field again to 2010/07/07 then the store has the previous value 2009/09/20.
Why is that? Do I need to manually update the store? For text fields everything works fine.

Thank you.

Edit: I am using JsonStore and tried store.update() - store.save() but both don't work.