damiengarbarino/dojo-calendar — Issue #4: data loaded from external data source doesn't show until calendar view is changed
Author: matt-dns
Created: 2012-03-05 21:08:06+00:00
State: open

This widget is looking really great so far!! I'm running into a little hitch, though. I'm linking the calendar to an ItemFileWriteStore via the dojo.store.DataStore adapter. It works fine if I'm passing the data directly to the ItemFileWriteStore via the "data" parameter, however, if I'm loading the data from an external source via the "url" parameter, the events don't show up on the calendar until the calendar view is changed (i.e. switched from 4-day to monthly).

I've uploaded a couple test files to gist: https://gist.github.com/1981034

calendar_internal.html is loading the data from a javascript variable, and calendar_external.html is loading the data from calendar_data.json (which I've also attached).

As a side-issue, I'm also having problems updating the events to the store; if you drag-and-drop the sample event in either of the above examples, the ItemFileWriteStore responds with "assertion failed in ItemFileWriteStore", even though I've defined a callback to assert the save. The callback never seems to get called at all, though that may be an issue with the data adapter, and not the calendar widget.

Thanks!