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

Edit problem with drag and drop enabled

2 Answers 192 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 07 Jul 2016, 11:46 AM

Hi,


I found a weird problem using drag and drop in a Kendo grid. The value of the cell that was changed loses his value after clicking into another cell. When I disable the functionality of drag and drop everything just works fine.  One remark on this issue is that when I use the TAB-key to go to another cell and not the mouse-click the value remains.
You can easily simulate this by an example on the Telerik dojo http://dojo.telerik.com/ufezi . Initially in the standard example the editable property on the grid was not set.
There is also another example available here http://jsfiddle.net/UsCFK 


Can someone please provide me a solution.


Regards,

Stefan.

2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay Rusev
Telerik team
answered on 11 Jul 2016, 06:34 AM

Hello Stefan,

The reason for the behavior is that Draggable handles mousedown event and prevents it in order to stop text selection while dragging. This is the only  reliable way to achieve this cross-browser.

This however has the side effect of preventing blur and subsequent  change event of the input. Thus the values remain unchanged.

One possible workaround for your scenario is to force blur of the input. See the updated dojo bellow for more details.

http://dojo.telerik.com/@rusev/IMUga

Regards,
Nikolay Rusev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Stefan
Top achievements
Rank 1
answered on 12 Jul 2016, 08:39 AM

That works !

Thanks,

Stefan.

Tags
Grid
Asked by
Stefan
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Stefan
Top achievements
Rank 1
Share this question
or