- Home
- Forum
- LightSwitch HTML
- Display subject in monthview
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
SIGN IN To post a reply.
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.
<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
SB
Stephen Barash
April 6, 2017 11:54 PM UTC
That fixed it! Thank you so much!
Stephen
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.
Regards,
Karthigeyan
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
SB Stephen Barash
- Mar 29, 2017 06:49 PM UTC
- Apr 7, 2017 04:20 AM UTC