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

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

5 Answers 140 Views
Drag and Drop
This is a migrated thread and some comments may be shown as answers.
Richard Koslik
Top achievements
Rank 1
Richard Koslik asked on 10 Aug 2015, 02:39 PM

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.

5 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 12 Aug 2015, 08:40 AM
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!
 
0
Richard Koslik
Top achievements
Rank 1
answered on 12 Aug 2015, 10:29 AM

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.

0
Alexander Valchev
Telerik team
answered on 14 Aug 2015, 07:28 AM
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!
 
0
Richard Koslik
Top achievements
Rank 1
answered on 14 Aug 2015, 07:53 AM

Hello Alexander,

how to drag/drop grid cells without Kendo Draggable? 

Thank you, 

Richard.

0
Accepted
Alexander Valchev
Telerik team
answered on 18 Aug 2015, 07:20 AM
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!
 
Tags
Drag and Drop
Asked by
Richard Koslik
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Richard Koslik
Top achievements
Rank 1
Share this question
or