Hello,
We experience a script error randomly when moving events with drag and drop within the scheduler.
The Visual explanation is that the event we have started to move - dont "release" from the mouse and are stuck with the cursor. As you can see in the attached file, the problem occur in the kendo.web.min.js library.
The current configuration run on Win 8.1 , IE11 and on the kendoui.complete.2013.2.918.commercial release.
Our datasource:
The Scheduler initialisation method
I very happy for any help on this mather.
Best Regards
We experience a script error randomly when moving events with drag and drop within the scheduler.
The Visual explanation is that the event we have started to move - dont "release" from the mouse and are stuck with the cursor. As you can see in the attached file, the problem occur in the kendo.web.min.js library.
The current configuration run on Win 8.1 , IE11 and on the kendoui.complete.2013.2.918.commercial release.
Our datasource:
dataSource =
new
kendo.data.SchedulerDataSource({
sync:
function
() {
this
.read();
},
batch:
true
,
transport: {
read: {
url: m_serverUrl +
"/ActivityPointerSet"
,
dataType:
'json'
},
parameterMap:
function
(options) {
var
parameter = {
$filter: filterstring,
$select:
'ActivityTypeCode,ActivityId,Subject,ScheduledEnd,ScheduledStart,StatusCode,OwnerId'
};
return
parameter;
}
},
schema: {
model: {
id:
"ActivityId"
,
fields: {
taskId: { from:
"ActivityId"
},
title: { from:
"Subject"
, defaultValue:
"No title"
, validation: { required:
true
} },
start: { type:
"date"
, from:
"ScheduledStart"
},
end: { type:
"date"
, from:
"ScheduledEnd"
},
//startTimezone: { from: "StartTimezone" },
//endTimezone: { from: "EndTimezone" },
StatusCode: { from:
"StatusCode"
},
roomId: { from:
"ActivityTypeCode"
},
description: { from:
"StatusCode"
},
recurrenceId: { from:
"RecurrenceID"
},
recurrenceRule: { from:
"RecurrenceRule"
},
recurrenceException: { from:
"RecurrenceException"
},
ownerId: { from:
"OwnerId"
, defaultValue: 1 },
isAllDay: { type:
"boolean"
, defaultValue:
false
}
}
},
parse:
function
(data) {
return
data.d.results;
},
type:
"json"
},
serverSorting:
true
,
serverFiltering:
true
});
return
dataSource;
}
The Scheduler initialisation method
function
ISV_Abs_InitKendoScheduler() {
var
datasource = ISV_Abs_GetSchedulerDataSource();
$(
"#scheduler"
).kendoScheduler({
date:
new
Date(),
editable: {
confirmation:
"Are you sure you want to delete this Sales Call?"
},
startTime:
new
Date(
"2013/6/13 07:00 AM"
),
navigate: scheduler_navigate,
remove: scheduler_remove,
resizeStart: scheduler_resizestart,
save: scheduler_save,
moveStart: scheduler_movestart,
views: [
"day"
,
{ type:
"week"
, selected:
true
},
"month"
,
"agenda"
],
edit:
function
(e) {
Xrm.Utility.openEntityForm(e.event.roomId, e.event.taskId,
null
);
e.preventDefault();
return
false
;
},
dataSource: dataSource,
resources: [
{
field:
"roomId"
,
dataSource: [
{ text:
"Sales Call"
, value:
"abs_salescall"
, color:
"#7ea700"
},
{ text:
"Appointment"
, value:
"appointment"
, color:
"#0094E5"
}
],
title:
"Activity Type"
}]
});
}
function
scheduler_movestart(e) {
if
(e.event.description.Value == 2 || e.event.description.Value == 3) {
alert(
"Cannot update a canceled or completed Activity"
);
e.preventDefault();
return
false
;
}
}
I very happy for any help on this mather.
Best Regards