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

Get Scheduler TimeSlot on kendoDropTarget

2 Answers 94 Views
Drag and Drop
This is a migrated thread and some comments may be shown as answers.
Aldo
Top achievements
Rank 2
Aldo asked on 31 Jul 2013, 05:30 PM
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 Answers, 1 is accepted

Sort by
0
Aldo
Top achievements
Rank 2
answered on 05 Aug 2013, 12:18 PM
No advice?
0
Rosen
Telerik team
answered on 05 Aug 2013, 12:58 PM
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!
Tags
Drag and Drop
Asked by
Aldo
Top achievements
Rank 2
Answers by
Aldo
Top achievements
Rank 2
Rosen
Telerik team
Share this question
or