View Full Version : Store write event not triggered on create or update

29 Sep 2009, 1:54 AM
Hi Guys,

This is my first time using Ext JS so forgive me if the question is a bit daft :)

I have a button triggering a store.save().

Now when I have removed items from the store and do store.save() the 'write' event is triggered, but when I have added or updated the event is not triggered.

As far as I know it should be triggered for all three cases.

Anyone have any idea why?

var proxy = new Ext.data.HttpProxy({
url: 'manageOption.aspx'

var writer = new Ext.data.JsonWriter({
encode: true,
writeAllFields: true,
listful: true

var store = new Ext.data.GroupingStore({
id: 'optionStore',
autoSave: false,
proxy: proxy,
reader: new Ext.data.JsonReader({
idProperty: 'id',
root: 'data',
fields: Option
writer: writer,
sortInfo: {field: 'number', direction: 'ASC'}

store.on('write', function(store, action, result, res, rs) {

29 Sep 2009, 7:15 AM
Bump, still no luck solving this.

8 Sep 2012, 2:48 AM
i have the same problem