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

Display subject in monthview

I'd like to display the Start Time in a monthview cell like Microsoft Outlook does. I see a similar request in your Xamarin forums (Thread ID 127323), but the Xamarin properties and events suggested don't seem to be available in the JavaScript ejSchedule properties and events. Can I do this? Thank you, Stephen Barash

3 Replies

KK Karthigeyan Krishnamurthi Syncfusion Team March 30, 2017 05:42 AM UTC

Hi Stephen, 
Thank you for contacting Syncfusion support. 
We have prepared the below sample to display the Start time in month view appointments using template option and kindly visit the below link to know more about the template support. 
Kindly refer the below code example used in the sample. 
<script id="apptemplate" type="text/x-jsrender"> 
        {{if View == "month"}} 
        <div style="height:100%"> 
            <div style='float:left; '>{{:~format(StartTime,"month")}}</div><br> 
        <div style="height:100%"> 
            <div style='float:left; '>{{:~format(StartTime,"strTime")}}</div> 
            <div style='float:left; '>{{:~format(EndTime)}}</div> <br> 
function _getTime(time, type) { 
            if (type == "strTime") 
                return ej.globalize.format(new Date(time), "hh:mm tt -"); 
                return ej.globalize.format(new Date(time), "hh:mm tt"); 
$.views.helpers({ format: _getTime }); 

SB Stephen Barash April 6, 2017 11:54 PM UTC

That fixed it! Thank you so much!


KK Karthigeyan Krishnamurthi Syncfusion Team April 7, 2017 04:20 AM UTC

Hi Stephen,  
We are happy that your requirement was fulfilled.  
Please let us know if you need further assistances.  

Live Chat Icon For mobile
Up arrow icon