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.

Changing Monthview cell HasAnAppointment Color

Thread ID:

Created:

Updated:

Platform:

Replies:

129013 Feb 21,2017 11:17 AM Jun 5,2017 06:15 AM Xamarin.Forms 8
loading
Tags: SfSchedule
Luuk
Asked On February 21, 2017 11:17 AM

Hey,

I wonder how can I change the color of the stripe (Android) and dot (iOS) when there is a appointment at a certain date? I want to change the color from the generic blue to a other color. Same goes for the dot color inside the MonthInline.

The should be doable now with the new OnMonthInlineLoaded and MonthCellLoaded events.


Thanks in advance!

Luuk

Nijamudeen Mohamed Sulaiman [Syncfusion]
Replied On February 22, 2017 04:11 AM

Hi Luke, 
 
Thanks for your interest in Syncfusion products. 
 
As of now, we don’t have direct support to Change the Default style/Color of Month Appointment Rendering in SfSchedule Xamarin (Android & iOS). So, we have considered this “Change the Default style/Color of Month Appointment Rendering” as a feature request and it will be implement in any of our upcoming release. 
 
But this requirement can be achieved by using Month cell customization and month inline appointment customization available in SfSchedule Xamarin Forms. Please refer the User Guide below. 
 
User Guide:  
 
Please let us know, if you would require any further assistance on this. 
 
Regards, 
Nijamudeen M. 


Luuk
Replied On February 23, 2017 09:30 AM

Hey,

That's unfortunate I used to be able to change the color of the dots in the monthview by overriding the Color property of the ScheduleAppointment. 

http://imgur.com/a/nokoC



Luuk
Replied On February 23, 2017 09:35 AM

Hey,

That's unfortunate I used to be able to change the color of the dots in the monthview by overriding the Color property of the ScheduleAppointment. The link render now .

I will use the new OnAppointmentLoaded for now but I do hope you will enable it by default some day in the future :)!


Cheers and thanks!

Luuk



Nijamudeen Mohamed Sulaiman [Syncfusion]
Replied On February 24, 2017 12:37 AM

Hi Luke,

We can change the inline appointment indicator color (dots mentioned in the image) by setting Color property of ScheduleAppointment in SfSchedule Xamarin Forms (Android). Please refer the following code example and Sample image screenshot for this.

C#:
CustomData meeting = new CustomData();
meeting.From = new DateTime(date.Year, date.Month, date.Day, hour, 00);
meeting.To = (meeting.From.AddHours(1));
meeting.EventName = currentDayMeetings[appointmentIndex];
meeting.color = color_collection[appointmentIndex];
 

  

DataMapping: 

dataMapping = new ScheduleAppointmentMapping();
dataMapping.SubjectMapping = "EventName";
dataMapping.StartTimeMapping = "From";
dataMapping.EndTimeMapping = "To";
dataMapping.ColorMapping = "color";
schedule.AppointmentMapping = dataMapping;
meetings = customDataViewModel.ListOfMeeting;
schedule.DataSource = meetings;


Sample Screenshot: MonthInlineAppointment_Color
 


Sample Path: Xamarin/sample/Forms/SampleBrowser/ => Schedule/GettingStarted 


If the above provided solution doesn’t meet your requirement, could you please revert us back with more information such as Xamarin Version, Android Device configurations along with simple issue reproducing sample (if possible)? So, that we can analyze on your requirement further and provide you a possible solution.
 


Query #2;
 

As mentioned in the previous update “Change the Default style/Color of Month Appointment Rendering” will be implement in any our upcoming releases. We appreciate your patience until then.

Regards,
Nijamudeen M.
 

Luuk
Replied On February 24, 2017 06:57 AM

Hey your solution works :) thanks!

Subburaj Pandian Veluchamy [Syncfusion]
Replied On February 27, 2017 08:03 AM

Hi Luuk,

  

 Thank you for the update. We are happy that the given solution has met your requirement, please let us know if you need any further assistance. 

  

 Regards, 

 Subburaj Pandian V 

Emil
Replied On June 2, 2017 07:26 PM

month cell customization changes entire cell but I would like to change only this blue stripe. if I change entire cell, I am losing day number and i need to customize it myself, it causes an ugly implementation. Beside that I want to have different color for different type of appointments in month view. how can this be achieved?

Subburaj Pandian Veluchamy [Syncfusion]
Replied On June 5, 2017 06:15 AM

Hi Emil, 
 
As of now, the mentioned support for customizing MonthView appointment indicator (blue notation) in Schedule Xamarin Forms, your requirement is only to display indicator color based on appointments or else you to customize the indicator as well. Could you please elaborate your requirement in detail along with screenshot (if possible), it will be helpful for us to analyze on it and implement the same in future releases. 
 
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.

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.

;