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

[Solved] Edit Buttons - Draggable Behaviour

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
AGB
Top achievements
Rank 1
Iron
AGB asked on 02 Mar 2015, 11:06 AM
Hi Guys

An annoying feature of the grid is that any Update/Cancel/Destroy buttons, within the grid or edit popups, are draggable by the mouse and can be dropped onto edit fields resulting in the underlying html code being inserted into the text box.

To me this behaviour feels wrong for buttons.

Is there an easier way to stop the buttons being draggable by default, without traversing the DOM and setting draggable="false" on every k-button <a> element.

Regards
Alan

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 04 Mar 2015, 07:26 AM
Hi Alan,

We are not aware of a better approach for the discussed tweak. Please use the Grid's edit event to apply the draggable attribute to all desired elements inside e.container.

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-edit

So far there has been no feedback about the default draggability of the edit buttons, but we may consider disabling it out-of-the-box in the future.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
AGB
Top achievements
Rank 1
Iron
Answers by
Dimo
Telerik team
Share this question
or