Hi Syncfusion,
I have a kanban component and a diagram component interacting and have the following issues:
1) while the card is been dragged between columns and swimlanes, the position of the card is incorrect. Is there any way I can set it to match the mouse position? I have been trying to figure out for a while how to get the element and update its position using JS, but haven't made any progress.
2) when I drag from the symbol palette into the kanban I get strange behaviour. It is hard to describe, please watch the video linked to below.
Many thanks,
Geoff
Thanks @Indrajith. Look forward to hearing your thoughts on this.
Thanks for the update Vinitha,
Please let me know if there is anything I can do or provide to help you resolve this.
Cheers, Geoff
Hi Vinitha,
Thanks very much for investigating these issues. Here is a 2min video with some detail in response
while the card is been dragged between columns and swimlanes, the position of the card is incorrect
Your stackblitz doesn't seem to have solved this (even if I remove all css from kanban). Is it possible to get a handle on the element that is being dragged so that I can just manually position it or even hide it? Is there an ID or class that I can use to do something like elem.querySelector(".foo .bar");
when I drag from the symbol palette into the kanban I get strange behaviour
When I remove the alert from your stackblitz (diagram-with-custom-kanban-component.ts line 56). The problem resurfaces. Please see the video.
Regards,
Geoff
Hi Vinithi,
Query 1. “when I drag from the symbol palette into the kanban I get strange behaviour”
Thanks very much for getting to the bottom of this one. I had spent ages and got nowhere - and I would never have figured it out. For anyone coming after, the fix is to turn pointer events off and then back on again..
public dragEnter(args: IDragEnterEventArgs): void {
if (args) {
let evt = document.getElementById('kanban');
evt.style.pointerEvents = 'none';
}
}
public drop(args: IDropEventArgs) {
if (args) {
let evt = document.getElementById('kanban');
evt.style.pointerEvents = 'auto';
}
}using document.querySelector(".e-dragclone") and the mouse event pos. But it is pretty clunky and I can't get at the mouse event on the kanban.
Cheer, Geoff
Hi Vinitha, any news?
So I guess that means we effectively can't achieve what we are after in order to have a kanban and grid as html components on the diagram and drag and drop.
Thanks a lot for investigating this anyhow. Hope it becomes possible one day...