Drag "gridcell" and drop to other "gridcell" in same Grid

6 posts, 1 answers
  1. Richard Koslik
    Richard Koslik avatar
    71 posts
    Member since:
    Apr 2010

    Posted 10 Aug 2015 Link to this post

    Hello,

     is it possible to have a grid with

    .Selectable(selectable => selectable
           .Mode(GridSelectionMode.Multiple)
           .Type(GridSelectionType.Cell))

    and drag one cell to an other cell (move an entry to an other cell)?
    Additionally this should only work if only one cell is selected.

    It seems that the "kendoDraggable hint function" is only called if the selection mode is "single")...

    Have anyone done this or know how to do with the Kendo-Grid?

     

    thanks, Richard.

  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 12 Aug 2015 Link to this post

    Hi Richard,

    Multiple selection feature allows the user to select multiple cells by drag and drop. This functionality interferes with kendoDraggable features. I am afraid that the two cannot be combined together.

    Regards,
    Alexander Valchev
    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. Richard Koslik
    Richard Koslik avatar
    71 posts
    Member since:
    Apr 2010

    Posted 12 Aug 2015 in reply to Alexander Valchev Link to this post

    Hello Alexander,

    so if you say "..allows the user to select multiple cells by drag and drop...", can you ​show me an example how to do this?

    Because multiple means also 1 (or more)...
    Or does it mean the target can't be the same grid?

    What i want to do is to use the grid as an calendar(like Outlook)...and there i want to be able to move an entry, lets say from "Thuesday-Column" to "Saturday-Column"...

    Any chance to realize this with the grid?

    regards, Richard.

  5. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 14 Aug 2015 Link to this post

    Hello Richard,

    This screen cast shows the feature I am talking about. As you can see the selection box is shown on mouse down and hidden on mouse up. The same events are used by the Kendo Draggable which is why the two features are incompatible.

    In case you want to use Kendo Draggable in the Grid you should disable the build-in multiple selection.

    Regards,
    Alexander Valchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  6. Richard Koslik
    Richard Koslik avatar
    71 posts
    Member since:
    Apr 2010

    Posted 14 Aug 2015 Link to this post

    Hello Alexander,

    how to drag/drop grid cells without Kendo Draggable? 

    Thank you, 

    Richard.

  7. Answer
    Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 18 Aug 2015 Link to this post

    Hi Richard,

    Kendo UI does not offer build-in Drag and Drop solution apart from Kendo Draggable. Once again I would like to point out that this is not a problem of Kendo Draggable but a conflict between two features which uses same browser events. If you turn off Grid's multiselection you will be able to use Kendo Draggable.

    Regards,
    Alexander Valchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready