Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to hide weekends with ResouceView (Read 3458 times)
Brock
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 8
Joined: Jun 1st, 2015
How to hide weekends with ResouceView
Jun 1st, 2015 at 7:45pm
Print Post  
Hello,

We have resource view based schedule with one or two resources (such as department and employee) on the left, with the calendar days on the right. Is it possible to hide the weekends in this view?

I have tried using getMonthSettings().setFilterWeekends(true) on the Calendar component, but that doesn't seem to work.  Any ideas are greatly appreciated.
Thanks!
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: How to hide weekends with ResouceView
Reply #1 - Jun 2nd, 2015 at 6:17am
Print Post  
Hi,

It is possible to hide days of the week in the Resource view by using the ResourceViewSettings.setHiddenDays method. Keep in mind that this method has an effect only if the bottom timeline's unit is set to Hour or Day. The following code hides the weekend in a Resource view:

Code
Select All
calendar.getResourceViewSettings().setHiddenDays(DaysOfWeek.Saturday | DaysOfWeek.Sunday); 


The getMonthSettings method returns an object, which affects the appearance of the SingleMonth and MonthRange views only.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Brock
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 8
Joined: Jun 1st, 2015
Re: How to hide weekends with ResouceView
Reply #2 - Jun 4th, 2015 at 5:21pm
Print Post  
Fantastic! Thank you !  I knew hidden days feature was there but didn't know how to do multiple days at once. Thanks!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint