Changing Behavior of Kendo Grid Inline Editing Selected Text Drag/Drop

1 Answer 24 Views
Drag and Drop Editor Grid
Ben
Top achievements
Rank 1
Ben asked on 30 Jul 2021, 05:06 PM | edited on 30 Jul 2021, 07:11 PM

Currently Kendo grids, like this one, behave like tables in MS Word when selected text is dragged/dropped.  I would like my Kendo grid to not have this behavior and instead act more like Excel, where clicking and moving the mouse while over selected text will change the selection. 

Is there an option for this in the Kendo jQuery Grid?

1 Answer, 1 is accepted

Sort by
0
Georgi Denchev
Telerik team
answered on 02 Aug 2021, 08:27 AM

Hello, Ben,

I am sharing the answer from the ticket here as well, in case anybody else encounters the same problem.

The described behavior can be prevented by returning false in the input's dragstart event handler. The Edit event of the Grid can be used in order to get all of the inputs.

      	function onEdit(e) {
          e.container.find("input").on("dragstart", function() {return false;});
        }

Runnable example in Dojo:

https://dojo.telerik.com/@gdenchev/oVAfuTIC 

Best Regards,
Georgi Denchev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Drag and Drop Editor Grid
Asked by
Ben
Top achievements
Rank 1
Answers by
Georgi Denchev
Telerik team
Share this question
or