This is a migrated thread and some comments may be shown as answers.
Display bug in Scheduler?
3 Answers 35 Views
This is a migrated thread and some comments may be shown as answers.
Abradax
Top achievements
Rank 1
Abradax asked on 03 Nov 2014, 06:49 PM
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).


3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 06 Nov 2014, 08:08 AM
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!
 
0
Abradax
Top achievements
Rank 1
answered on 06 Nov 2014, 10:49 AM
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.



0
Georgi Krustev
Telerik team
answered on 06 Nov 2014, 12:22 PM
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!
 
Asked by
Abradax
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Abradax
Top achievements
Rank 1
Share this question
or