How to Access Appointment from CellTemplate

I have a CellTemplate defined on View.Week :

<SfSchedule TValue=Appointment>

<ScheduleViews>
<ScheduleView Option="View.Week">
<CellTemplate>
@{
var item = context as TemplateContext; // CAN ACCESS Date ONLY
                                                       
                                                       HOW TO ACCESS Appointment from here ?
}
</CellTemplate>
</ScheduleView>



3 Replies 1 reply marked as answer

AK Alagumeena Kalaiselvan Syncfusion Team July 13, 2020 12:47 PM UTC

Hi Andrey, 

Thanks for Contacting Syncfusion support. 

We have checked your reported scenario “How to access Appointment from CellTemplate” and currently Scheduler does not have support to access appointments using CellTemplate. So, can you explain your scenario in which case you need appointment details within CellTemplate to suggest an alternate solution. 

Regards 
Alagumeena.K 



MA Mr Andrey Voronov July 15, 2020 08:31 AM UTC

In addition to Subject, Date and Location I also would like to display Agenda, Topics etc in CellTemplate


AK Alagumeena Kalaiselvan Syncfusion Team July 16, 2020 12:52 PM UTC

  
Hi Andrey, 

Thanks for sharing your scenario with us 

We have checked your scenario and each appointment is wrapped by one or more cells. So, we suggest to use Scheduler EventTemplate which helps to include the preferred fields in the appointments. We already have sample for this scenario which is available in our online sample. 

Kindly get back to us, if you need further assistance. 

Regards 
Alagumeena.K 


Marked as answer
Loader.
Up arrow icon