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

scrollable & container

7 Answers 106 Views
Drag and Drop
This is a migrated thread and some comments may be shown as answers.
Gusev
Top achievements
Rank 1
Gusev asked on 27 Sep 2013, 09:52 AM
Hello!
I have this code:
var grid = $("#PlanCut").data("kendoGrid");
grid.table.kendoDraggable({
            filter: "tbody > tr:not(.k-grid-edit-row)",
            group: "gridGroup",
            container: $("#PlanCut tbody"),
            axis: "y",
            hint: function(e) {...

grid.table.kendoDropTarget({
            group: "gridGroup",
            drop: function (e) {...
and of course I have the grid with Scrollable;

Problem:
targetElement for drag element is entire grid, but not the part that is visible
If I delete scrollable and use pageable....everything well works.

7 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 30 Sep 2013, 03:41 PM
Hello Gusev,

Could you please share with us a JsBin example which actually demonstrates the case, we cannot be sure and advise you just with the code you shared.

Thank you for the cooperation.

Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Gusev
Top achievements
Rank 1
answered on 01 Oct 2013, 07:27 AM
Hello!
I think, that I set incorrect options for "container";
http://jsbin.com/UfUKuLu/11/edit
0
Petur Subev
Telerik team
answered on 02 Oct 2013, 02:23 PM
Hello again,

What exactly is wrong with the fiddle, could you please clarify?

Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Gusev
Top achievements
Rank 1
answered on 03 Oct 2013, 04:55 AM
Please, see a scrollbar.png
0
Gusev
Top achievements
Rank 1
answered on 03 Oct 2013, 05:12 AM
I need "Container" only for $("#grid tbody")
Or I need write necessary css selector, but I do not know how I can this do
0
Accepted
Petur Subev
Telerik team
answered on 04 Oct 2013, 12:19 PM
Hello Gusev,

If I understand you correctly you are trying to set the following container option:

http://jsbin.com/UfUKuLu/20/edit

container: $(".k-grid-content"),

I hope this helps.

Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Gusev
Top achievements
Rank 1
answered on 04 Oct 2013, 01:10 PM
Hello, Petur Subev.
thanks !
Tags
Drag and Drop
Asked by
Gusev
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Gusev
Top achievements
Rank 1
Share this question
or