Does the kendoDragHandle have to be a direct child of the kendoDragTarget or can it be a grandchild, grand-grandchild, ect. of the kendoDragTarget?
1 Answer, 1 is accepted
0
Martin Bechev
Telerik team
answered on 29 Oct 2024, 03:18 PM
Hi Bryson,
In case you are referring to a similar scenario, the kendoDragHandle needs to be applied to an element inside the kendoDragTarget.
Alternatively, the developer can use the kendoDragTargetContainer and its built-in dragTargetFilter property, which allows targeting the exact custom element that would be dragged regardless of its level. Here is an example:
Thank you for your reply. So in this (https://stackblitz.com/edit/angular-xslc1v) scenario that you sent me, the kendoDragHandle and the kendoDragTarget can both be used to drag the box.
Here is an example of my confusion. If the <div> wrapped around the kendoDragHandle is there (see link 1), then the kendoDragTarget seems to take over as the kendoDragHandle (aka they can both be used to drag the box). However, when you remove that <div> and the kendoDragHandle becomes the child of the kendoDragTarget (see link 2), then it seems to work as I expect which is that only the kendoDragHandle is able to drag the kendoDragTarget.