This is a migrated thread and some comments may be shown as answers.

Kendo Scheduler

3 Answers 79 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Sairam
Top achievements
Rank 1
Sairam asked on 29 Apr 2015, 04:09 AM

Hi Team,

 

I am trying to bind JSON data to kendo scheduler. But unfortunately the JSON data i am getting from a rest service is not binding in Scheduler.

Below is the JSON i am getting from service:

 

[
{
"idschedule": 1,
"title": "Clark HAll",
"start": "2015-04-22T01:00:00.000Z",
"end": "2015-04-22T13:00:00.000Z"
},
{
"idschedule": 2,
"title": "Library",
"start": "2015-04-22T01:00:00.000Z",
"end": "2015-04-23T13:00:00.000Z"
}
]

 

 

JS

$(function() {    $("#scheduler").kendoScheduler({        date: new Date(),        startTime: new Date("2013/6/13 06:00 AM"),        height: 600,        views: [            "day",            { type: "workWeek", selected: true },            "week",            "month",            "agenda",            { type: "timeline", eventHeight: 50}        ],      editable:false,               dataSource: {                        transport: {                read: {                    url: "/viewSchedule",                    dataType: "json"                },                parameterMap: function(options, operation) {                    if (operation !== "read" && options.models) {                        return {models: kendo.stringify(options.models)};                    }                }            },            schema: {               id: "taskId",                model: {                                       fields: {                        taskId: { from: "idschedule", type: "number" },
                        title: { from: "title", defaultValue: "No title"},                        start: { type: "date", from: "start" },                        end: { type: "date", from: "end" }                                           }                }            }        }    });
});

 

 

 

3 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 29 Apr 2015, 09:21 AM
Hi Sairam,

I tried to reproduce the problem locally but to no avail – everything is working as expected on our side when I simulate the request. Could you please modify the following demo to reproduce the issue and send it back to us? 

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Sairam
Top achievements
Rank 1
answered on 29 Apr 2015, 10:34 PM

Hi Vladimir,

when i hard coded the data it is working fine.But when i am reading from REST service its not showing up. Could you please help me more on this

 

Thanks,

Sairam Nutheti

 

 

0
Vladimir Iliev
Telerik team
answered on 04 May 2015, 07:06 AM
Hi,

Could you please provide runable project where the issue is reproduced? This would help us pinpoint the exact reason for this behavior.

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Scheduler
Asked by
Sairam
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Sairam
Top achievements
Rank 1
Share this question
or