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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Request for more usable Custom binding context

Thread ID:

Created:

Updated:

Platform:

Replies:

146380 Aug 1,2019 11:48 PM UTC Aug 2,2019 01:58 PM UTC Xamarin.Forms 1
loading
Tags: SfCalendar
Malcolm Jack
Asked On August 1, 2019 11:48 PM UTC

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?

Subburaj Pandian Veluchamy [Syncfusion]
Replied On 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      


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.

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

Live Chat Icon For mobile
Live Chat Icon