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

Request for more usable Custom binding context

The current example for CalendarCustomization doesn't use the datasource property at all, and instead uses a cell loaded event.

This is causing over-complicated implementations.

Is it possible to simply bind the DataSource to a custom collection, and supply a MonthViewSettings.CellTemplate without setting the CellBindingContext in the MonthCellLoaded event?

1 Reply

SP Subburaj Pandian Veluchamy Syncfusion Team August 2, 2019 01:58 PM UTC

Hi Malcolm, 
  
Thank you for contacting Syncfusion support. 
 
Calendar allow you to perform CRUD (create, Read, Update and Delete) operations and you can directly bind the DataSource to calendar. Please refer the following User Guide documentation regarding the same, 
And default binding context for the MonthCell will return the date information of the cell. If you need to customize the cell, with custom collection information you need to set the cell binding context for the month cell in the MonthCellLoaded event.

Also, you can use CellTemplate  to customize the month cell,

UG link: https://help.syncfusion.com/xamarin/sfcalendar/how-to#how-to-customize-month-view-cell-using-a-template 
  
If the shared information doesn’t sufficient, can you share the more details about requirement? It will be helpful for us to analyze and provide you solution at earliest. 
  
Regards,
Subburaj Pandian V      


Loader.
Live Chat Icon For mobile
Up arrow icon