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. Image for the cookie policy date

Co-ordinates of Apoointments

Hi,

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,
Vijayant.


1 Reply

AD Administrator Syncfusion Team 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.


http://www.syncfusion.com/support/user/uploads/CS_e4081491.zip



Loader.
Live Chat Icon For mobile
Up arrow icon