Hello
I need your support, please, for the Scheduler (Kendo JQuery UI v2022.2.510)
I have 2 problems: the special characters in the description (example: euro symbol) and the multilines description of the appointments.
I would like to show next invoices to be paid.
The scheduler must be on mounth show, and all event are all day event.
On the event I need to show the number of document, buisness name and the amounth.
I'm trying to implement more filds in schema but the program ignore that.
I also tried to insert html tag in the description filed
(example:
<span class='IntestazioneDocumento'>PA / 1234567890 del 01/01/2000</span>
<span class='aDitta'>Alla ditta Business</span>
<span class='nRata'>Payment 1 di 1</span>
<span class='importo'>Tot. documento 123,45 €</span>
)
but the tasg are showed as text.
In every case, the height of the result cell is too short to show all information.
I use the code
kendo.ui.progress($("#scheduler"), false);
urlData = url
$("#scheduler").kendoScheduler({
height: 600,
views: [
"day",
"week",
{ type: "month", selected: true},
"year"
],
timezone: "Europe/Rome",
allDayEventTemplate: $("#event-template").html(),
eventTemplate: $("#event-template").html(),
dataSource: {
batch: true,
transport: {
read: {
url: urlData,
type: "POST",
contentType: "application/json; charset=utf-8",
dataType: " json"
},
update: {
},
create: {
},
destroy: {
}
},
schema: {
model: {
id: "taskId",
fields: {
taskId: { from: "TaskID", type: "number" },
title: { from: "Title", defaultValue: "No title", validation: { required: true } },
start: { type: "date", from: "Start" },
end: { type: "date", from: "End" },
startTimezone: { from: "StartTimezone" },
endTimezone: { from: "EndTimezone" },
description: { type: "html", from: "Description" },
recurrenceId: { from: "RecurrenceID" },
recurrenceRule: { from: "RecurrenceRule" },
recurrenceException: { from: "RecurrenceException" },
ownerId: { from: "OwnerID", defaultValue: '' },
isAllDay: { type: "boolean", from: "IsAllDay" },
IntestazioneDocumento: { from: "IntestazioneDocumento" },
RagioneSociale: { from: "RagioneSociale" },
}
}
}
},
editable: false,
resources: [
{
field: "ownerId",
title: "Owner",
dataSource: [
{ text: "CENTRAL", value: 0, color: "#0000ff" },
{ text: "LOGGIA", value: 1, color: "#f8a398" },
{ text: "GIOTTO", value: 2, color: "#2572c0" },
{ text: "P_COMM", value: 3, color: "#118640" }
]
}
]
});
$("input[ name=showFarm ]").change(function(e) {
var checked = $.map($("input[ name=showFarm ]:checked"), function(checkbox) {
return parseInt($(checkbox).val());
});
var scheduler = $("#scheduler").data("kendoScheduler");
scheduler.dataSource.filter({
operator: function(task) {
return $.inArray(task.ownerId, checked) >= 0
}
});
});
});