Kendo Scheduler

4 posts, 0 answers
  1. Sairam
    Sairam avatar
    2 posts
    Member since:
    Apr 2015

    Posted 28 Apr 2015 Link to this post

    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" }                                           }                }            }        }    });
    });

     

     

     

  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2196 posts

    Posted 29 Apr 2015 Link to this post

    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!
     
  3. Sairam
    Sairam avatar
    2 posts
    Member since:
    Apr 2015

    Posted 29 Apr 2015 in reply to Vladimir Iliev Link to this post

    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

     

     

  4. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2196 posts

    Posted 04 May 2015 Link to this post

    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!
     
Back to Top