Hi,
Is there an example of a scheduler consuming a web service for meetings that doesn't expect all meetings to be returned.
I am migrating from a server side based application that used ASP.NET AJAX and that version of the scheduler required you to implement a provider that implemented a GetAppointments( RadScheduler owner ) where the owner object had the start and end dates of the visibile scheduler.
I would like to run a client side page with a Kendo UI for jQuery scheduler and then perform a web service call equivalent to the above GetAppointments. But all the examples I have found return all meetings which is not possible since we are reading from a database with many years of meetings.
The documentation
read: {
dataType:
"jsonp"
Hi,
What I am trying to achieve:
Have a local array of my objects to be displayed by the scheduler, then I would need to remove some of them, and at the same time insert new ones
When the page first loads, it works ok, as soon as I try to update the underline data source I get the error:
TypeError: Cannot read properties of null (reading 'getTimezoneOffset')
To reproduce, please press the "Update" button. (I have attached a sample) PS: Please note that I am currently using: kendo.2022.1.412 ( I forgot to update the sample, but it throws the same error)
And one more question, for the scheduler then to reflect the changes , do I need to call the scheduler.view? or will it be ok to just trigger the scheduler.dataSource.read()?
//update scheduler
var scheduler = $("#scheduler").data("kendoScheduler");
scheduler.dataSource.read();
//scheduler.view(scheduler.view().name) ----> do we really need this?
Thanks,
Hi,
ServerSide dataSource date format is 'yyyy-MM-dd HH:mm'. How to convert to the date format available to kendoScheduler's dataSource ?
Thank you. I really appreciate all your help.
In the application that I am currently working, I am using Telerik UI ASP.NET Core Scheduler Component and concerning binding I use SignalR. When a user creates an event all clients that are connected to the Hub are successfully notified for the relative creation and the created event is successfully created too.
My concern is that I am looking for a way to prevent the notification and the event creation for clients that meet a condition.
Is there any way to filter the events that are displayed on a client based on client related conditions i.e what values the user of the client has selected on some fields of a form on the same page with Scheduler?
I have a Scheduler Project that allows for the selection on multiple "Attendees" like some of the samples.
My problem is how to save that field to a Web API with a MS SQL backend.
The CRUD endpoints work perfectly until I introduce the Attendee's array.
e.g. [1,2]
I can define it in the Model as type: "string" and it will save it in the SQL as nvarchar(MAX).
Just can't get it back.
Any help would be appreciated.
Ed
Attempting to move a scheduler event when grouping by a resource with a remote data source produces the following console errors.
Uncaught TypeError: Cannot read property 'value' of undefined
Cannot read property 'groupIndex' of undefined
All events are unable to moved unless I double click an event and open it's edit menu first thing upon the scheduler data being bound and before taking any other action in the scheduler.
Both the scheduler data source and the resource data source are remote; however, when I hard-code the resource data source to match what the remote output would be, the scheduler works as intended.
Here's what my scheduler initialization code looks like.
$(function() {
var dataSource = new kendo.data.SchedulerDataSource({
transport: {
read: {
url: 'service url', /* omitted for example */
type: 'GET',
data: {
account_id: 'myAccountId'
},
dataType: "json",
beforeSend: function(req) {
req.setRequestHeader('example-api-key', '1234');
}
},
update: function(e) {
e.success();
}
},
schema: {
data: "schedulerEvents"
}
});
$("#scheduler").kendoScheduler({
date: new Date(),
toolbar: [ "search" ],
eventHeight: 50,
selectable: true,
views: [
"day", "week", "month", "agenda", {type:"timeline", selected: true}, "timelineWeek", "timelineMonth"
],
dataSource: dataSource,
group: {
resources: ["Assignees"],
orientation: "vertical"
},
resources: [
{
field: "assignees",
title: "Assignees",
name: "Assignees",
dataSource: {
transport: {
read: {
url: 'service url', /* omitted for example */
type: 'GET',
data: {
account_id: 'myAccountId'
},
dataType: "json",
beforeSend: function(req) {
req.setRequestHeader('example-api-key', '1234');
}
}
},
schema: {
data: "assignees"
}
},
multiple: true
}
]
});
});
The response data from the server looks like this:
{
assignees: [{ value: "1234", text: "Assignee Name" }],
schedulerEvents: [{ assignees: ["1234"], id: "9876", title: "Event Title", start: "2021-05-27T00:00:00", end: "2021-5-28T00:00:00" }]
}
You'll notice in my screenshot that the events appear to be grouped correctly, but nonetheless produce errors when clicking on them or trying to move them.
At a loss as to what may be causing this. Perhaps I'm missing something when it comes to binding remote data. Please let me know if there's anything I can do to solve this issue.