Calendar events added via setData() are not automatically shown if setCurrentViewName("month") was called.
Steps to reproduce:
1. Go to http://www.smartclient.com/#simpleCalendar
2. Modify the code there as follows:
3. Click Try It.
Notice that no events are shown.
4. Now, add an event manually (just click on any date and then Save Event or click Next/Previous arrows).
All events defined previously in the eventCalendar.setData(eventData) call will now appear.
thanks
gene
Steps to reproduce:
1. Go to http://www.smartclient.com/#simpleCalendar
2. Modify the code there as follows:
Code:
isc.Calendar.create({ ID: "eventCalendar", //data: eventData }); eventCalendar.setCurrentViewName("month"); //works fine without this line eventCalendar.setData(eventData);
Notice that no events are shown.
4. Now, add an event manually (just click on any date and then Save Event or click Next/Previous arrows).
All events defined previously in the eventCalendar.setData(eventData) call will now appear.
thanks
gene
Comment