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

Using a Sortable with a Grid loses cell edits

2 Answers 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rowan
Top achievements
Rank 1
Rowan asked on 23 Sep 2015, 03:27 AM

We are having issues losing cell edits when using Sortables with Grids. Kendos own Sortable+Grid demo shows the issue if you switch on editable:

 http://demos.telerik.com/kendo-ui/sortable/integration-grid

Here is the same demo with editable switched on:

http://dojo.telerik.com/EFEVE

To reproduce the problem click in a cell and edit it, then click in another cell. The edits you made in the first cell will be lost.

If you disable the Sortable then this issue doesn't occur.

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Dikov
Telerik team
answered on 24 Sep 2015, 07:53 AM
Hi Rowan,

The scenario that you have is not supported and as you have noticed, it will break the editing functionality.

Nevertheless, you can try the following approaches for integrating kendoSortable with editable Grid:

1) Disable the dragging for all TD elements in the Grid and use a separate column with an IMG element for example that could be used to limit the dragging options:
2) Use different edit mode ("inline" or "popup"):
Please note that in both cases we are setting elements that should be ignored in the "ignore" property of the kendoSortable.

Hope this helps.


Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Rowan
Top achievements
Rank 1
answered on 25 Sep 2015, 01:05 AM

Hi Konstantin,

Option (1) works perfectly for us, thanks! We already had an image set in a separate column for dragging, and it was set at as the handler in the Sortable config.

My assumption was that if we set a handler the rest of the row elements would be ignored automatically... but it seems we need to set the ignore config as well.

thanks,

Rowan

Tags
Grid
Asked by
Rowan
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Rowan
Top achievements
Rank 1
Share this question
or