Custom message label in SfCalendar

hi,

I am using your control - calendar to display the events that are performed in the app. However in the calendar, if we select any previous dates/ no events date, it is showing as No Appointments. My question is can I change the message label to custom label/ message or remove the entire block instead of showing "No Appointment".


Thanks & Regards
Ramgopal Reddy M 

5 Replies

MS Mugundhan Saravanan Syncfusion Team May 24, 2018 09:49 AM UTC

Hi Ramgopal Reddy Mula,

Thanks for contacting Syncfusion support.

We have created a sample based on your requirement “Custom message label “in xamarin.iOS .please have the sample from the following link

Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/Sample_Calendar-584938396
Please let us know if any other concern.

Regards,
Mugundhan S


ED Ed replied to Mugundhan Saravanan May 31, 2019 02:38 AM UTC

Hi Ramgopal Reddy Mula,

Thanks for contacting Syncfusion support.

We have created a sample based on your requirement “Custom message label “in xamarin.iOS .please have the sample from the following link

Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/Sample_Calendar-584938396
Please let us know if any other concern.

Regards,
Mugundhan S

This trick doesn't seem to work with Xamarin forms in iOS on 17.1.0.43 

The InlineToggled event fires and I can call Collapse in iOS but it appears ignored and the toggle always takes place. 

It does appear to work in Xamarin Forms Android though. 

Is there any chance we could get a field on the calendar we could set Default Text for the no items view?


SP Subburaj Pandian Veluchamy Syncfusion Team May 31, 2019 02:14 PM UTC

Hi Ed, 
 
Thank you for contacting Syncfusion support. 
 
Query 1: As per the current implementation the InlineToggled event will be fired while select the date which has appointments. It is an expected behavior.  
 
Query 2: Is there any chance we could get a field on the calendar we could set Default Text for the no items view? 
Based on the provided information your requirement “Customize the No Appointment text” and it can be achieved by using InlineLoaded event. We have prepared the simple sample for the same. 
 
 
We hope that this helps. Kindly revert us if you have any concern. 
 
Regards,
Subburaj Pandian V   



ED Ed replied to Subburaj Pandian Veluchamy June 3, 2019 12:01 AM UTC

Hi Ed, 
 
Thank you for contacting Syncfusion support. 
 
Query 1: As per the current implementation the InlineToggled event will be fired while select the date which has appointments. It is an expected behavior.  
 
Query 2: Is there any chance we could get a field on the calendar we could set Default Text for the no items view? 
Based on the provided information your requirement “Customize the No Appointment text” and it can be achieved by using InlineLoaded event. We have prepared the simple sample for the same. 
 
 
We hope that this helps. Kindly revert us if you have any concern. 
 
Regards,
Subburaj Pandian V   


The problem with the approach indicated in the sample is the CalendarBehavior object is not aware of Navigation or any other objects available from the parent page. It also negates the Inline Item Tapped events (you have to listen for your own events attached to the buttons in your example), and those buttons would not have access to NavigableElements as found on ContentPage(s).

There's already a datatemplate defined for calendar items. Just allow us to declare a datatemplate for an empty set of CalendarEvents.


IR Indumathi Ravichandran Syncfusion Team June 3, 2019 02:17 PM UTC

Hi Ed,

Thank you for the update.

Query 1: CalendarBehavior object is not aware of Navigation or any other objects available from the parent page.
Since, provided information is not sufficient to analyze your requirement. Can you share the more details about your requirement? Which helps us to analyze and resolve your requirement.

Query 2:
Based on provided information we have analyzed your requirement "Set the inline item for the cells which doesn't contains appointment" as per calendar implementation the inline item template only applicable for the inline view which contains events and the template doesn't work for the inline view which doesn't contains event.

But you can achieve your requirement using OnInlineLoadedEvent, in this event you can set the custom view to inline view based on the appointment details, we have prepared simple sample for the same.

Samplelink: http://www.syncfusion.com/downloads/support/forum/137721/ze/CustomInlineViewSample664653498.zip

We hope that this helps. Kindly, revert us if you ave any concern.

Regards,
Indumathi R


Loader.
Up arrow icon