BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
From: Pankaj Sharma [mailto:pankajss29@gmail.com]
Sent: Friday, July 03, 2015 9:19 AM
To: Syncfusion Support
Subject: Re: Syncfusion support community forum 119510, Customize Subject(Appointement) in Schedule, has been updated.
Hi Velmurugan,
Thanks for your valuable reply.
The example which you have provide in that on each date there is only one appointment.But my requirement is that suppose on 07-July-2015 I have three appointment I want to show these three appointment in three different color.
For e.g In above image I have two appointment on 01-July-2015.I want to show test app appointment in red color and Fishing appointment in yellow color.
Regards
Pankaj
<script type="text/javascript">
window.Default = [{
Id: 100,
Subject: "Bering Sea Gold",
StartTime: new Date(2015, 6, 2, 06, 00),
EndTime: new Date(2015, 6, 2, 08, 00),
Description: "",
AllDay: false,
Recurrence: true,
RecurrenceRule: "FREQ=DAILY;INTERVAL=2;COUNT=10",
Categorize: "3"
},
-------------------------------
-------------------------------
-------------------------------
{
Id: 115,
Subject: "Cash Cab",
StartTime: new Date(2015, 6, 30, 15, 00),
EndTime: new Date(2015, 6, 30, 16, 30),
Description: "",
AllDay: false,
Recurrence: true,
RecurrenceRule: "FREQ=DAILY;INTERVAL=1;COUNT=5",
Categorize: "1"
},
{
Id: 116,
Subject: "test app",
StartTime: new Date(2015, 6, 1, 06, 30),
EndTime: new Date(2015, 6, 1, 07, 30),
Description: "",
AllDay: false,
Recurrence: false,
Categorize: "5" // Here need to mention the id value of the categorize - For this appointment i have mentioned the "RedCategory" id ie: 5
},
{
Id: 117,
Subject: "Fishing",
StartTime: new Date(2015, 6, 1, 16, 00),
EndTime: new Date(2015, 6, 1, 17, 00),
Description: "",
AllDay: false,
Recurrence: false,
Categorize: "6" // For this appointment i have mentioned the "YellowCategory" id ie: 6
}
];
$(function () {
var dManager = window.Default;
$("#Schedule1").ejSchedule({
width: "100%",
height: "525px",
currentView:"month",
categorizeSettings:
{
enable: true,
allowMultiple: true,
dataSource: [
{ text: "Blue Category", id: 1, color: "#7499e1", fontColor: "red" },
{ text: "Green Category", id: 2, color: "#7cce6e", fontColor: "white" },
{ text: "Orange Category", id: 3, color: "#ffaa00", fontColor: "green" },
{ text: "Purple Category", id: 4, color: "#cb6bb2", fontColor: "black" },
{ text: "Red Category", id: 5, color: "#e04343", fontColor: "white" },
{ text: "Yellow Category", id: 6, color: "#f8f264", fontColor: "black" }
],
text: "text", id: "id", color: "color", fontColor: "fontColor"
},
appointmentSettings: {
dataSource: dManager,
id: "Id",
subject: "Subject",
startTime: "StartTime",
endTime: "EndTime",
description: "Description",
allDay: "AllDay",
recurrence: "Recurrence",
recurrenceRule: "RecurrenceRule",
categorize: "Categorize" // Here we need to map the "categorize" field to take the effect of the categorize value }
});
});
</script>
</code>
The following screenshot illustrates the output of the above code snippets.
Also, we request you to create the new appointment or edit the appointment through “Details appointment window” to apply the categorize. Please refer the following screenshot to create the new appointment with the categorize value.
Please find the modified sample from the following location.
http://www.syncfusion.com/downloads/support/forum/119510/ze/Schedule380818061
Please let us know if it helps and if you need any further assistance on this.
Regards,
Velmurugan
From: Pankaj Sharma [mailto:pankajss29@gmail.com]
Sent: Monday, July 06, 2015 8:30 AM
To: Syncfusion Support
Subject: Re: Syncfusion support community forum 119510, Customize Subject(Appointement) in Schedule, has been updated.
Hi Velmurugan,
Thanks for the reply.
The example you send meet exactly my requirement.
I will implement it in my project and let you know if have any issue.
Once again many thanks.
Regards
Pankaj
Hi Pankaj,
Thank you for using Syncfusion products.
We are able to reproduce the above mentioned issue in the sample provided by you in this forum. This is an already known issue and we have fixed this issue and included in our Vol 2, 2015 release (version 13.2.0.29). We have prepared the sample with the code snippets mentioned in the sample given by you, which can be downloaded from the following location.
JS Playground link:
http://jsplayground.syncfusion.com/fok4y5gy
Therefore, we suggest you to upgrade your Essential Studio version.
Please let us know if it helps and if you need any further assistance on this.
Regards,
Velmurugan
From: Pankaj Sharma
Sent: Sunday, August 16, 2015 9:45 PM
To: Syncfusion Support <support@syncfusion.com>
Subject: Re: Syncfusion support community forum 119510, Customize Subject(Appointement) in Schedule, has been updated.
Hi Velmurugan,
Thanks for the valuable reply.
Regards
Pankaj Sharma
<script id="apptemplate" type="text/x-jsrender">
<div style="height: 100%">
<div>
<div>{{:Subject}}
</div>
</div>
</div>
</script>
<script type="text/javascript">
$(function () {
var dManager = ej.DataManager(window.Template).executeLocal(ej.Query().take(10));
$("#Schedule1").ejSchedule({
appointmentTemplateId: "#apptemplate",
width: "100%",
height: "525px",
-----------------
-----------------
-----------------
});
});
</script>
</code>
Similarly, you can customize appointment display based on your requirement by passing required column value. Also, we request you to refer our following online document location to know about the “Appointment Template Support”.
http://docs.syncfusion.com/aspnetmvc/schedule/template
Please let us know if it helps and if you need any further assistance on this.
Regards,
Velmurugan
From: Pankaj Sharma
Sent: Wednesday, August 19, 2015 1:28 AM
To: Syncfusion Support <support@syncfusion.com>
Subject: Re: Syncfusion support community forum 119510, Customize Subject(Appointement) in Schedule, has been updated.
Hi Velmurugan,
Thanks for the reply.
As per your mail I have implemented "Appointment Template" functionality but in that case right click(Context Menu) not work when I click on the appointment and in case of cell click it will work(show context menu).So please let me know how can I show context menu when click on the appointment .
<script id="Script1" type="text/x-jsrender">
<div style="height: 100%" class="e-apptext e-appointinnertext e-apptime">
<div>
<div class="e-apptext">{{:Subject}}
</div>
</div>
</div>
</script>
</code>
The sample can be available in the following link.
http://jsplayground.syncfusion.com/heztsuuj
Please let us know if it helps and if you need any further assistance on this.
Regards,
Velmurugan