Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Items length (Read 2350 times)
tshaiman
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Sep 14th, 2008
Items length
Sep 14th, 2008 at 9:17am
Print Post  
In timetable View :
Is there a way to configure an item so it will not always occupy the entire cell width/height .
Currently there is a usage of a small white rectangle in the item
to show its accurate start/end time , but is there a way not to render this but rather make the item length shorter ?
this is crucial when there are 2 events : the one ends at 20:04 and the second begins at 20:05 , but if the current view is at scale of 12 minutes per cell the result will look as if the item collide.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Items length
Reply #1 - Sep 15th, 2008 at 7:20am
Print Post  
In order to prevent the items from spanning entire cells, set the ShowPadding property in the TimetableSettings to Disabled.

Additionally, if you want to prevent the items from snapping to cell borders during interactive modification, set EnableSnapping to Enabled and specify a desired interval through the SnapInterval property (for example, 1 minute).

Meppy
  
Back to top
 
IP Logged
 
tshaiman
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Sep 14th, 2008
Re: Items length
Reply #2 - Sep 15th, 2008 at 7:29am
Print Post  
that is great , thank you.
speaking of snapping ( or stickness) : is it possible to show the snap -line ( an indicator that appears,usually as an horizontal / vertical line ,each time you get closer to another item.
the point is to allow the user to "snap" to the nearest item with visual indication.

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


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Items length
Reply #3 - Sep 15th, 2008 at 9:15am
Print Post  
There is no automatic way to achieve this. However, with proper event handling, you can attain similar effect. You will have to handle the ItemModifying event, perform the necessary calculations to see whether the modified item is close enough to another item and adjust the values of the NewStartTime and NewEndTime properties in the accompanying EventArgs object accordingly.

In order to render a snap line, you have to use custom drawing. To do this, set the appropriate value to the Calendar.CustomDraw property (TimetableCell for example) and handle the Draw event.

Meppy
  
Back to top
 
IP Logged
 
tshaiman
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Sep 14th, 2008
Re: Items length
Reply #4 - Sep 15th, 2008 at 12:12pm
Print Post  
thanks again.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint