We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Co-ordinates of Apoointments

Thread ID:





75895 Aug 14,2008 04:00 AM UTC Aug 14,2008 12:58 PM UTC WinForms 1
Tags: ScheduleControl
Administrator [Syncfusion]
Asked On August 14, 2008 04:00 AM UTC


I would like to know if there is any means by which we can get the rectsngle co-ordinates of the appointments rectangle shown in the Schecule? I want to draw images linked to the appointment rectangles to Highlight some appointments.

Thanks and Regards,

Administrator [Syncfusion]
Replied On August 14, 2008 12:58 PM UTC

Normally, you would handle the CellDrawn event for the grid to try to decorate a cell with custom drawing after the cell is drawn. But, with the ScheduleControl, the underlying grids come and go as you change dates or change viewtypes, etc. So, it is difficult to keep a particular grid event hooked up as the grids get destroyed and recreated.

So, a better solution is to derive the ScheduleGrid and override OnCellDrawn to handle your custom drawing code. To get your ScheduleControl to use the derived grid, you also have to derive the ScheduleControl and override CreateScheduleGrid so that an instance of your derived grid is used.

Here is the recurrence sample that we ship modified to show how you might do this. The sample will draw a little red square on any non-allday appointment for Day, WorkWeek and Custom views.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon