search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

ShowNonBusiness is not working In Scheduler

Asked by Shivprasad Acharya
8 years ago.

I'm using DayPilot Scheduler with angularJS.
and I used following codes.
$scope.dpc = new DayPilot.Scheduler("dpcalendar");

$scope.dpc.businessBeginsHour = 8;
$scope.dpc.businessEndsHour = 18;
$scope.dpc.ShowNonBusiness=false;

But scheduler is not rendering businessBeginsHour & businessEndsHour . Its starting from 12 AM and ending with 11 PM. Can anyone help me to resolve this issue?.

Answer posted by Dan Letecky [DayPilot]
8 years ago.

All properties of the DayPilot JavaScript objects use lower camel case (just like JavaScript generally). Try this instead:

$scope.dpc.businessBeginsHour = 8; 
$scope.dpc.businessEndsHour = 18; 
$scope.dpc.showNonBusiness = false;  // showNonBusiness instead of ShowNonBusiness
Comment posted by Dan Letecky [DayPilot]
8 years ago.
Comment posted by Shivprasad Acharya
8 years ago.

Thanks a lot Dan Letecky. U saved my Day.

Comment posted by Shivprasad Acharya
8 years ago.

It resulted in another issue.
for Saturday and Sunday scheduler is not rendering now.
I went through dayPilot documentation and forum. used "onIncludeTimeCell".but it seems to be not working.
any help or solution please?

Comment posted by Dan Letecky [DayPilot]
8 years ago.

You can simply use businessWeekends instead of onIncludeTimeCell:

$scope.dpc.businessWeekends = true;
Comment posted by Shivprasad Acharya
8 years ago.

Thank You again Dan Letecky.
I posted another question. It would be really helpful for me if you help me solving that.
https://forums.daypilot.org/Topic.aspx/3335/while-dragging-an-event-mouse-cursor-will-not-be-in-proper-
(screenshots attached)

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.