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

Drag & Drop Cell in Grid

1 Answer 1640 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Myo
Top achievements
Rank 1
Myo asked on 23 Oct 2018, 06:28 AM

  Hi,

Is there any way to achieve this drag and drop cells in angular grid? 

Thanks

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 24 Oct 2018, 08:55 AM
Hi Han,

The described functionality is not supported as the designed Grid purpose is to display tabular data in the following manner - a separate row is rendered for each data item, and a separate column for each data item's property that has a column with the respective field configured.

You can reorder whole columns via the built-in column reordering functionality:

https://www.telerik.com/kendo-angular-ui/components/grid/columns/reordering/

... but dragging individual cells and dropping them elsewhere in the Grid is not supported, as this would mean that the Grid structure would no longer properly represent the data (as every column is bound to a specific field and its cells are supposed to contain the respective data item's property value).

I hope this makes sense.

In theory, one could programmatically make all cells draggable and implement some custom logic to achieve the desired behavior, similar to the one for drag-and-drop of rows:

https://www.telerik.com/kendo-angular-ui/components/grid/how-to/row-reordering/

... but all implementation details and respective data manipulation are in the hands of the developer.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Myo
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or