Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) snap to on drag/drop (Read 6710 times)
DoctorsDad
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 20
Joined: May 19th, 2011
snap to on drag/drop
Aug 10th, 2011 at 3:59pm
Print Post  
I've set snapUnitCCount in my ResourceViewSettings and if I move an existing appointment, it dutifully snaps to the time I specified. But when I drag/drop an item onto the Calendar it lands on any old time.
Is there a simple way for me to force these events to follow the same rule?

TIA,
Dave
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: snap to on drag/drop
Reply #1 - Aug 11th, 2011 at 6:26am
Print Post  
Currently you can do this only by manually calculating the nearest snap time. I will see if we can add a method, which performs this calculation automatically.

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


I love YaBB 1G - SP1!

Posts: 20
Joined: May 19th, 2011
Re: snap to on drag/drop
Reply #2 - Aug 11th, 2011 at 12:28pm
Print Post  
Many thanks,

I don't want to be a pain but can you give me an idea of timescale? I need to know if I should press on or wait a while.

Dave.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: snap to on drag/drop
Reply #3 - Aug 11th, 2011 at 1:53pm
Print Post  
Check this version of the control:

https://mindfusion.eu/download/MindFusion.Scheduling.5.2.0a.trial.zip

The Calendar class now exposes a new method - SnapInResourceView(DateTime), which performs programmatic snapping of the specified date taking into consideration the current Resource View settings.

If it works well, contact me at meppy@mindfusion.eu for a licensed version.

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


I love YaBB 1G - SP1!

Posts: 20
Joined: May 19th, 2011
Re: snap to on drag/drop
Reply #4 - Aug 11th, 2011 at 4:14pm
Print Post  
Many thanks Meppy.

I'm not sure if I've guessed how to use this correctly.

I'm doing this:

Dim app As New MindFusion.Scheduling.Appointment()
app.StartTime = Calendar1.SnapInResourceView(currentCellDateTime)

but it's not achieving much.
Am I doing it wrong?

Dave.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: snap to on drag/drop
Reply #5 - Aug 12th, 2011 at 6:02am
Print Post  
This is how it should be used. What is it that doesn't work, does it return the same date?

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


I love YaBB 1G - SP1!

Posts: 20
Joined: May 19th, 2011
Re: snap to on drag/drop
Reply #6 - Aug 12th, 2011 at 8:59am
Print Post  
Yep, time after is exactly the same as time before call.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: snap to on drag/drop
Reply #7 - Aug 12th, 2011 at 9:44am
Print Post  
Can you provide me with your resource view settings, the snap settings more specifically?

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


I love YaBB 1G - SP1!

Posts: 20
Joined: May 19th, 2011
Re: snap to on drag/drop
Reply #8 - Aug 12th, 2011 at 9:48am
Print Post  
I've set SnapUnitCount to 15 and SnapUnit to Minute
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: snap to on drag/drop
Reply #9 - Aug 12th, 2011 at 11:43am
Print Post  
Try this version:

https://mindfusion.eu/download/MindFusion.Scheduling.5.2.0b.trial.zip

I haven't tested it much, so I appreciate any feedback.

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


I love YaBB 1G - SP1!

Posts: 20
Joined: May 19th, 2011
Re: snap to on drag/drop
Reply #10 - Aug 12th, 2011 at 2:17pm
Print Post  
Sorted!

Many thanks.

Dave.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint