Hi Manolo,
Thank you for contacting Syncfusion support.
We have checked your reported query. We can cancel the drop event by using args.cancel property in beforeDrop event as demonstrated in the below code snippet
HTML
|
<ejs-listbox
#listbox1
[dataSource]="dataA"
[allowDragAndDrop]="true"
height="330px"
scope="combined-list"
[fields]="fields"
(drop)="onDropGroupA($event)"
(beforeDrop)="dragging($event)"
></ejs-listbox> |
TS
|
public dragging(args: DragEventArgs): void {
args.cancel = true;
} |
For your reference, we have prepared a sample based on your requirement. Please check the below link.
Please check the above link and get back to us, if you need further assistance.
Regards,
Gayathri K