Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Multiple Day items (Read 3443 times)
alanmcgeough
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Dec 17th, 2007
Multiple Day items
Dec 17th, 2007 at 1:19pm
Print Post  

Hi i just have a quick question what is the best way to have a item covering 2/3 or multiple days if is it possible to set the endtime for the item to the next day or 3 days from now or what is the best solution to this.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Multiple Day items
Reply #1 - Dec 18th, 2007 at 5:46am
Print Post  
You have to set the EndTime of the item to the appropriate date. For example, if you want the item to end three days after it has started, use the following code:

Code
Select All
item.EndTime = item.StartTime.Add(TimeSpan.FromDays(3)) 


Meppy
« Last Edit: Dec 18th, 2007 at 11:33am by Meppy »  
Back to top
 
IP Logged
 
alanmcgeough
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Dec 17th, 2007
Re: Multiple Day items
Reply #2 - Dec 18th, 2007 at 11:12am
Print Post  
when i have a multiple day event is there any way that  i can place it on the _schedule showing the item across the  full day and not as all day event event. for example showing the item booked across a number of days
i have tried using the

_clickedItem.StartTime.Add(TimeSpan.FromDays(numDays))

but instead of showing the item on the _schedule it shows it on top of the _schedule for that day as all dayevent

can i disable this all day event so that the item can be draw across the day.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Multiple Day items
Reply #3 - Dec 18th, 2007 at 11:39am
Print Post  
Try setting the Calendar.TimetableSettings.EnableDayItems property to Disabled. This will prevent items longer than one day from displaying in the all-day header.

Meppy
  
Back to top
 
IP Logged
 
alanmcgeough
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Dec 17th, 2007
Re: Multiple Day items
Reply #4 - Dec 18th, 2007 at 12:46pm
Print Post  
yes thats great thanks for that  i tried that and it worked fine but the item only went to the end of the day it was on even though the end date spread over 3 days. I would expect it to cover the 3 days.

thanks again
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Multiple Day items
Reply #5 - Dec 18th, 2007 at 1:34pm
Print Post  
The item should span all three days. Can you send me a screenshot of what is happening at your side, so that I can see what might be wrong?

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