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.

Display subject in monthview

Thread ID:

Created:

Updated:

Platform:

Replies:

129707 Mar 29,2017 02:49 PM Apr 7,2017 12:20 AM LightSwitch HTML 3
loading
Tags: Schedule
Stephen Barash
Asked On March 29, 2017 03:18 PM

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

Karthigeyan Krishnamurthi [Syncfusion]
Replied On March 30, 2017 01:42 AM

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. 
 
<Code> 
<script id="apptemplate" type="text/x-jsrender"> 
        {{if View == "month"}} 
        <div style="height:100%"> 
            <div style='float:left; '>{{:~format(StartTime,"month")}}</div><br> 
            <div>{{:Subject}}</div> 
        </div> 
        {{else}} 
        <div style="height:100%"> 
            <div style='float:left; '>{{:~format(StartTime,"strTime")}}</div> 
            <div style='float:left; '>{{:~format(EndTime)}}</div> <br> 
            <div>{{:Subject}}</div> 
        </div> 
        {{/if}} 
</script> 
function _getTime(time, type) { 
            if (type == "strTime") 
                return ej.globalize.format(new Date(time), "hh:mm tt -"); 
            else 
                return ej.globalize.format(new Date(time), "hh:mm tt"); 
        } 
$.views.helpers({ format: _getTime }); 
</Code> 
 
Regards, 
Karthigeyan 
 
 


Stephen Barash
Replied On April 6, 2017 07:54 PM

That fixed it! Thank you so much!

Stephen

Karthigeyan Krishnamurthi [Syncfusion]
Replied On April 7, 2017 12:20 AM

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


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.

;