onclientRequestSuccess does not seem to have the updated firstDayStart(). I thought I had figured it out, but its not working:
As I navigate in the calendar, changing months, it does not reflect the right day - what am I doing wrong?
function onClientRequestSuccess(scheduler, eventArgs) { if (typeof loadList == 'function') { var start = scheduler.get_firstDayStart(); var end = start; var curView = scheduler.get_selectedView(); if (curView == 0) { // day view end.setHours(start.getHours() + 24); } else if (curView == 1) { // week view end.setHours(start.getHours() + (24 * 7)); } else if (curView == 2) { // week view end.setMonth(start.getMonth() + 1); // need to find out if we are on a Saturday.. If not, we need to add days until we get there } alert(start + " **- " + end); loadList(start.getTime(), end); }}