Set Scheduler width with javascript in View
10 years ago.
Hello,
In order to remove the blank space on the right of Scheduler for months with 28, 29 or 30 days I have done this:
function prevmth() {
dp.commandCallBack("prevmth");
SetWidth();
}
function SetWidth() {
var sdays = dp.startDate.daysInMonth();
switch (sdays) {
case 28:
dp.SetWidth = 1337;
break;
case 29:
dp.SetWidth = 1377;
break;
case 30:
dp.SetWidth = 1417;
break;
case 31:
dp.SetWidth = 1457;
break;
}
}
But the width does not change accordingly, any heads up?
Cheers,
J.
DayPilot