I have 3 stores set up for the Resources, Events and Assignments:
const resourceStore = new bryntum.scheduler.ResourceStore({
readUrl: 'webservices/Objects/Read',
autoLoad: true,
useRestfulMethods: true,
httpMethods: httpMethods,
headers: headers,
listeners: {
beforeRequest
}
});
const eventStore = new bryntum.scheduler.EventStore({
createUrl: 'webservices/Events/Create',
readUrl: 'webservices/Events/Read',
autoLoad: true,
autoCommit: true,
useRestfulMethods: true,
httpMethods: httpMethods,
headers: headers,
listeners: {
beforeRequest
}
});
const assignmentStore = new bryntum.scheduler.AssignmentStore({
createUrl: 'webservices/Assignments/Create',
readUrl: 'webservices/Assignments/Read',
autoLoad: true,
autoCommit: true,
useRestfulMethods: true,
httpMethods: httpMethods,
headers: headers,
listeners: {
beforeRequest
}
});
const scheduler = new bryntum.scheduler.Scheduler({
appendTo: instance.element,
resourceStore,
eventStore,
assignmentStore,
features: {
tree: true
},
columns: [
{
type: 'tree',
text: 'Name',
width: 250,
field: 'name'
}
]
});
Whenever I create an event and assignment and save it, it will stay on the resource for 2 seconds then disappear. I do not get any error messages in my console. After refreshing the page the event assignment does show up since its being saved to the database correctly.