Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Need assistance to implement a Strip on Scheduling Grid (Read 5547 times)
rajadorai
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 6
Location: TN
Joined: Nov 27th, 2013
Need assistance to implement a Strip on Scheduling Grid
Feb 19th, 2015 at 8:22am
Print Post  
I was just trying to implement a Purple Strip like in the attached screen of Scheduling Grid.

Can someone assist on that Please  Sad?
  

SC.jpg ( 141 KB | 145 Downloads )
SC.jpg
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Need assistance to implement a Strip on Scheduling Grid
Reply #1 - Feb 19th, 2015 at 9:21am
Print Post  
Hi,

You can do this by using custom drawing. More specifically, set the Calendar.CustomDraw property to CustomDrawElements.TimetableCell and handle the Calendar.Draw event. The following sample provides a complete solution:

https://mindfusion.eu/_samples/_sample_TimetableStrips.zip

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


I Love MindFusion!

Posts: 6
Location: TN
Joined: Nov 27th, 2013
Re: Need assistance to implement a Strip on Scheduling Grid
Reply #2 - Mar 11th, 2015 at 10:13am
Print Post  
Hi,

Thanks for providing me the assistance. The code you have provided me helped us to develop the Purple strip across the grid, when there are NO COLUMNS.

We can able to draw the Purple strip across the grid only when there are rows stretched across.

Please let us know, whether we can develop the Purple strip even when there are rows and columns on the Calendar Grid. Thanks in advance.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Need assistance to implement a Strip on Scheduling Grid
Reply #3 - Mar 11th, 2015 at 12:03pm
Print Post  
Hi,

If you need to display the stripes on top of appointments, you can collect the areas that need to be filled and perform the actual drawing later, in a Calendar.Paint handler. The modified version of the sample illustrates how:

https://mindfusion.eu/_samples/_sample_TimetableStrips2.zip

Let me know if this helps.

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


I Love MindFusion!

Posts: 6
Location: TN
Joined: Nov 27th, 2013
Re: Need assistance to implement a Strip on Scheduling Grid
Reply #4 - Mar 12th, 2015 at 9:37am
Print Post  
Thanks! Even if we collect the entire areas that need to be filled using the Calendar.Paint handler, the fill is limited to only a single cell in the Calendar grid. I have attached the screen shot.
I need to fill in all the cells using the Calendar.Paint handler.
Also you have provided the sample code for "Timetable Strips" which uses “Customdrawelements.timetablecell”, but we are in need of “Customdrawelements.scheduleitem “. Please assist. Thank you!

  

SC_001.jpg ( 134 KB | 157 Downloads )
SC_001.jpg
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Need assistance to implement a Strip on Scheduling Grid
Reply #5 - Mar 12th, 2015 at 10:25am
Print Post  
Hi,

Have you tried the attached sample? It should properly fill all the cells associated with the specified time intervals. The sample deliberately uses the TimetableCell element for this purpose. If you use the ScheduleItem element, the custom drawing code will not be executed for columns that do not contain appointments.

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