I'm trying to convert the calendar example to use a remote store. I got rid of the MemoryEventStore and replaced
Code:
this.eventStore = Ext.create('Ext.calendar.data.MemoryEventStore', {
data: Ext.calendar.data.Events.getData()
});
with
Code:
this.eventStore = Ext.create('Ext.calendar.data.EventStore');
my store looks like this:
Code:
Ext.define('Ext.calendar.data.EventStore', { extend: 'Ext.data.Store',
model: 'Ext.calendar.data.EventModel',
autoLoad: true,
remoteSort:true,
proxy: {
type: 'ajax',
api: {
read: 'data/jsonEvents.php',
update: 'data/updateEvents.php',
create: 'data/addEvent.php',
destroy: 'data/deleteEvent.php'
},
reader: {
type: 'json',
root: 'eventDatabase',
successProperty: 'success',
totalProperty: 'totalRecords'
}
}
});
Adding an event works and deleting an event works but editing an event never calls data/updateEvents.php. nothing happens when I drag an event or when I edit an event from the event form.
How do I update an event?