Hi,
Had a good look around for this. Found one or two things that don't seem to work so I'll ask.
I've got the Notify event model working fine. However, I'd also like to update the text of an event as its displayed in the scheduler from the client side.
Currently, I have to wait until the notify call to the server which re-loads the scheduler (I have code to customize the text content of events server side).
I am using the Notify queue as a sort of 'do work before saving' mechanism, which works fine, but if users change something that should change the event text, it looks to them like it hasn't worked, because the text does not change.
i.e.:
//Update the event object that I found
e.end(endDateTime);
e.start(startDateTime);
e.resource($("#resource").val());
e.value($("#value").val());
e.text($("#employee").children('option:selected').text());
var eventData = new Object();
eventData.employee_id = $("#employee").val()
eventData.eventtypeid = $("#eventtype").val();
//Queue the changes
StoreScheduler.events.update(e, eventData).queue();
This works but the event in the scheduler on screen still has the old text. I can't find a reference to being able to change the text directly in any of the documentation.
Also, while we're on this subject, is there any way to change the background color of an event from client side? (somethign else I'm doing server side on an event by event basis, but would like to replicate client side).
I'm using 6.9.2525.1 DEMO