Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic CellTime vs SnapUnit (Read 3049 times)
Gerco
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 10
Joined: Dec 1st, 2010
CellTime vs SnapUnit
Dec 2nd, 2010 at 9:22am
Print Post  
Is it possible that my appointments snaps on snapunit instead of snapping on the cellpresenters.

For example:

My CellTime is 15 minutes, but i would like my appointment to snap every 5 minutes.
Code
Select All
calendar.TimetableSettings.EnableSnapping = true;
calendar.TimetableSettings.SnapUnit = MindFusion.Scheduling.Wpf.TimeUnit.Minute;
calendar.TimetableSettings.SnapUnitCount = 5;

calendar.TimetableSettings.CellSize = 10;
calendar.TimetableSettings.CellTime = new TimeSpan(0, 15, 0);
 


When my appointment is from 7:00 to 8:05, it seems like it's from 7:00 to 8:15.
I could also set my celltime on "new TimeSpan(0, 5, 0)" but then it takes much longer to load the calendar ( calendar.EndInit() )
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: CellTime vs SnapUnit
Reply #1 - Dec 2nd, 2010 at 11:45am
Print Post  
By default the items visually expand to cover the entire cells. To turn this feature off, set TimetableSettings.ShowPadding to false.

Let me know if this helps.

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


I love YaBB 1G - SP1!

Posts: 10
Joined: Dec 1st, 2010
Re: CellTime vs SnapUnit
Reply #2 - Dec 2nd, 2010 at 1:32pm
Print Post  
Yes it works!

Thanks you!

Regards,
Gerco
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint