Get Scheduler TimeSlot on kendoDropTarget

3 posts, 0 answers
  1. Aldo
    Aldo avatar
    39 posts
    Member since:
    Feb 2011

    Posted 31 Jul 2013 Link to this post

    Hi i have a grid and i need to plan a scheduler from this.
    How can i get the timeslot where i dragged?
    var grid = $("#requestGrid").data("kendoGrid");
        var scheduler = $("#ganttScheduler").data("kendoScheduler");
        var itemUID;
     
        grid.table.kendoDraggable({
            cursorOffset: {
                top: 5,
                left: 5
            },
            filter: "tbody > tr",
            group: "Grid",
            hint: function (e) {
                itemUID = e.attr(kendo.attr("uid"));
                return $('<div class="k-grid k-widget"><table><tbody><tr>' + e.html()+ '</tr></tbody></table></div>');
            }
        });
     
        scheduler.element.kendoDropTarget({
            group: "Grid",
            drop: function (e) {
                alert("Dragged row 'uid': " + itemUID);
     
                //in case you need the model(data item) for this row
                var model = grid.dataSource.getByUid(itemUID);
                var aa = $(e.toElement).text();
     
                itemUID = null;
            }
        });
  2. Aldo
    Aldo avatar
    39 posts
    Member since:
    Feb 2011

    Posted 05 Aug 2013 Link to this post

    No advice?
  3. Kendo UI is VS 2017 Ready
  4. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 05 Aug 2013 Link to this post

    Hi Aldo,

    I'm afraid that the timeslot information is not currently available. However, we will do our best to support such scenario in future version of the widget. 

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