Is there a config option to set the paging period for the grid view?
It seems to default to a period of a month beginning on the current date, but I can’t find anything in the documentation that explaines how to alter this.
Is there a config option to set the paging period for the grid view?
It seems to default to a period of a month beginning on the current date, but I can’t find anything in the documentation that explaines how to alter this.
Hi,
the paging period is defined by scheduler.date[‘add_’ + viewName] function, it may be overriden for each view.
e.g. paging grid by weeks:[code]scheduler.date[‘add_grid’] = function(date, inc){
//date - current date; inc - direction, 1 or -1
var ndate = date.valueOf();
ndate += inc7246060*1000;// ± week
return new Date(ndate);
};[/code]
Thanks, that’s perfect.