Display bug in Scheduler?

4 posts, 0 answers
  1. Abradax
    Abradax avatar
    14 posts
    Member since:
    Feb 2014

    Posted 03 Nov 2014 Link to this post

    Strange Situation, and it seems to be a purely display related issue.

    I was following the thread here:  http://www.telerik.com/forums/=-24-hour-events-treated-as-all-day

    I got the view up and running, however, I have events that start and end on different days, and the same resource can be used multiple times (work force schedule, happens to the overnight people that start on one day and end on another)

    For example:  Bob works thursday from 10PM - 6:30 AM
    That entry looks fine.  Friday, he comes in at 10PM and works until 6:30 AM.

    The second entry has a start time of Friday 10PM and an end time of Saturday 10PM (not 6:30 AM as expected)

    This is consistent across all of my third shifters, and only in views that show a schedule as a non contiguous period of time (i.e. day view looks fine, as does month view).


  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3748 posts

    Posted 06 Nov 2014 Link to this post

    Hello Abradax,

    I prepared a simple Dojo demo in my attempt to replicate the issue. Could you review it and let me know if I am missing something?

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Abradax
    Abradax avatar
    14 posts
    Member since:
    Feb 2014

    Posted 06 Nov 2014 in reply to Georgi Krustev Link to this post

    Hi Georgi,

    I will have to check tonight, the example isn't showing for me ("failed to load snippet").  I don't know if my company is blocking some parts of the dojo or not. 

    I'm getting the following error:
    GET http://cdn.kendostatic.com/2014.2.903/js/angular.min.js.map 404 (Not Found) And it happens no matter which library I select.



  4. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3748 posts

    Posted 06 Nov 2014 Link to this post

    Hi Abradax,

    If the dojo.telerik.com site cannot be opened, then probably it is blocked at your site. For your convenience I have copied the content of the demo. You can try to run it locally:

    <!DOCTYPE html>
    <html>
    <head>
      <meta charset="utf-8">
      <title>Scheduler - 24 hours event (not all day)</title>
     
     
      <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
    </head>
    <body>
      <div id="scheduler"></div>
      <script>
        $(function() {
          $("#scheduler").kendoScheduler({
            date: new Date("2014-10-21"),
            //startTime: new Date("2014-10-21 07:00"),
            height: 600,
            views: [
                "week",
                "month",
                "agenda"
            ],
            dataSource: {
                batch: true,
                transport: {
                    read: function(options) {
                      options.success([{
                        id: 1,
                        title: "Long event",
                        start: new Date("2014-10-22 22:00:00"),
                        end: new Date("2014-10-23 6:30:00"),
                        description: ""
                      }, {
                        id: 2,
                        title: "Long event (2)",
                        start: new Date("2014-10-23 22:00:00"),
                        end: new Date("2014-10-24 6:30:00"),
                        description: ""
                      }]);
                    },
                    update: {
                        url: "http://demos.telerik.com/kendo-ui/service/tasks/update",
                        dataType: "jsonp"
                    },
                    create: {
                        url: "http://demos.telerik.com/kendo-ui/service/tasks/create",
                        dataType: "jsonp"
                    },
                    destroy: {
                        url: "http://demos.telerik.com/kendo-ui/service/tasks/destroy",
                        dataType: "jsonp"
                    },
                    parameterMap: function(options, operation) {
                        if (operation !== "read" && options.models) {
                            return {models: kendo.stringify(options.models)};
                        }
                    }
                }
              }
            });
        });
      </script>
    </body>
    </html>

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top