Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Items falling off the calendar (Read 4697 times)
Damian
Guest


Items falling off the calendar
Apr 20th, 2006 at 8:00am
Print Post  
Hi,

If i drag/move an item around the calendar ots fine but if i drag it outside the cells i.e. past the last hour and unclick the mouse the item just disappears - where dows it go exactly or how can i stop a user doing this! I want them to be able to move stuff around but not accidentally throw it away.

If a drag it off then back again its still there. 

???
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Items falling off the calendar
Reply #1 - Apr 20th, 2006 at 9:21am
Print Post  
You can handle the ItemModifying event end check that the new start and end time of the modified item stay within the displaye time range.

Meppy
  
Back to top
 
IP Logged
 
Damian
Guest


Re: Items falling off the calendar
Reply #2 - Apr 20th, 2006 at 6:09pm
Print Post  
Thats almost sorted it - it goes a bit funny when at the header when the all day event kicks in. 

My code is:

     int start = 0;
     int cell = 0;

     start += e.NewStartTime.Hour * 60;
     start += e.NewStartTime.Minute;

     cell += cal.TimetableSettings.CellTime.Hours * 60;
     cell += cal.TimetableSettings.CellTime.Minutes;

     if (start < cal.TimetableSettings.StartTime)
     {
       e.Confirm = false;
     }

     if (start  > (cal.TimetableSettings.EndTime - cell))
     {
       e.Confirm = false;
     }

If you try that code you will see what i mean about it going funny at the top - it disappears and you get the dots...  Im in timetable setting.

Can you get rid of the all day events? I want them to be honest.  Ive tried setting max alldayevents to 0 but min is 1.
  
Back to top
 
IP Logged
 
Damian
Guest


Re: Items falling off the calendar
Reply #3 - Apr 20th, 2006 at 6:25pm
Print Post  
What i mean by funny is if you clickan item and drag it up the day column, over the all day event header and off the control and then back down the column you get the dots in the drop down control in the all day event header and the item your dragging disappears.  When you unclick the mouse it comes back again but why does it disappear?

I would really like to remove alldayevents too.

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


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Items falling off the calendar
Reply #4 - Apr 21st, 2006 at 4:28am
Print Post  
What happens when you set 'cal.TimetableSettings.ShowDayHeader = State.Disabled;' ?

Meppy
  
Back to top
 
IP Logged
 
Damian
Guest


Re: Items falling off the calendar
Reply #5 - Apr 23rd, 2006 at 7:30pm
Print Post  
Yep - that works.  You may want to check it out for people using the header though. Think theres a bug there.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint