scrollable & container

8 posts, 1 answers
  1. Gusev
    Gusev avatar
    74 posts
    Member since:
    Dec 2012

    Posted 27 Sep 2013 Link to this post

    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.
  2. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 30 Sep 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Gusev
    Gusev avatar
    74 posts
    Member since:
    Dec 2012

    Posted 01 Oct 2013 Link to this post

    Hello!
    I think, that I set incorrect options for "container";
    http://jsbin.com/UfUKuLu/11/edit
  5. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 02 Oct 2013 Link to this post

    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!
  6. Gusev
    Gusev avatar
    74 posts
    Member since:
    Dec 2012

    Posted 02 Oct 2013 Link to this post

    Please, see a scrollbar.png
  7. Gusev
    Gusev avatar
    74 posts
    Member since:
    Dec 2012

    Posted 03 Oct 2013 Link to this post

    I need "Container" only for $("#grid tbody")
    Or I need write necessary css selector, but I do not know how I can this do
  8. Answer
    Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 04 Oct 2013 Link to this post

    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!
  9. Gusev
    Gusev avatar
    74 posts
    Member since:
    Dec 2012

    Posted 04 Oct 2013 Link to this post

    Hello, Petur Subev.
    thanks !
Back to Top
Kendo UI is VS 2017 Ready