Premium support for our pure JavaScript UI components


Post by plugins-welcome »

We are allowing dragging and dropping multiple tasks to different columns/swimlanes. And we're gonna validate the action of drag-and-dropping each tasks separately via api call to our backend. We are using beforeTaskDrop https://www.bryntum.com/docs/taskboard/api/TaskBoard/view/TaskBoardBase#event-beforeTaskDrop

If this listener returns true, all cards goes to desired position. If false, all cards goes back to previous position. Is there anyway to make some of these actions succeed and some of them fail?


Post by marcio »

Hello plugins-welcome,

Yes, but not at the same moment. If beforeTaskDrop return is false, all the drag action is canceled, even if one of the tasks passes the validation. What you can do, as you probably know which tasks are allowed to be moved, is to update these valid to the new values and with that move them to a new column/swimlane, but you'll need to do that programmatically.

Best regards,
Márcio


Post Reply