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.
Unfortunately, activation email could not send to your email. Please try again.

Calendar Control - reload CellTemplates

Thread ID:

Created:

Updated:

Platform:

Replies:

108784 May 13,2013 02:34 AM Jan 16,2014 11:37 AM WinRT 6
loading
Tags: Chart
Enrico Gebauer
Asked On May 13, 2013 02:34 AM

Hi,

I am having a problem with the Calendar control.

When my data is changing I cannot find a way to reload the calendar, so that the CellTemplates are reloaded as well. It works only when I change the current month on the UI, but not the current visible month.

Another issue is, that I don't find a way to set the current visible month programmatically. What would you suggest to achieve this.

 

Hope you can help me. Thanks.

Enrico

 


Mageshyadav M [Syncfusion]
Replied On May 14, 2013 08:18 AM

Hi Enrico,

 

Thank you for using Syncfusion products.

 

We can change the current visible month programmatically by modifying the DisplayDate property of Calendar control.

 

Please find the sample from the following location,

 

http://www.syncfusion.com/downloads/Support/DirectTrac/General/CalendarCellTemplateSample-1478123481.zip

 

In the above sample we have modified the DisplayDate property to display the current month has June.

 

Please let us know whether the sample assists your requirement.

 

Regards,
Mageshyadav.M


Daniele
Replied On January 9, 2014 08:35 AM

Hi,

But How I can Reload CellTemplates if the data for the current month  change?


Thanks

Daniele


Victory Jessie Selvam D [Syncfusion]
Replied On January 13, 2014 06:21 AM

Hi Daniele,

 

We have prepared a sample to achieve your requirement. In the sample we have modified the CellTemplate property and called SfCalendar.Refresh() method to reload the cell template.

 

Please let us know whether the provided sample meets your requirement.

 

Regards,

Victory


CalendarCellTemplateSample_c7347134.zip

Daniele
Replied On January 15, 2014 12:10 PM

Thanks for the example.

I have another question now.

Could you modify the same example adding a button which delete appointments?

So if I click on the Refresh button the calendar should remove only the appointment deleted,

because this is my scenario.

Thanks again

Daniele.


Victory Jessie Selvam D [Syncfusion]
Replied On January 16, 2014 06:06 AM

Hi Daniele,

 

Thanks for your update.

 

We have prepared a sample to meet your requirement. In the sample we have removed the appointments based on DateTime from AppointmentSource dictionary and refreshed the SfCalendar using Refresh() method.

 

Please let us know whether the provided sample meets your requirement.

 

Regards,

Victory


Calendar_3cfca803.zip

Daniele
Replied On January 16, 2014 11:37 AM

Thanks Victory,

this solution meets my requirements.


Thanks  a lot

Daniele.



CONFIRMATION

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.

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.

;