Our pure JavaScript Scheduler component


Post by Dev@2609 »

Hi team,
I am trying to validate drag and drop and resize of events on a particular row.
I right click on a resource to stop the reorder feature.

Also, I should be able to stop resize and drag for all events on a particular resource and prevent any event to be dragged on the same.

I am using below code to stop row reordering.
rowReorderFeature = {
listeners: {
gridRowBeforeDragStart: function(event){
const context = event.context,
record = this.grid.getRecordFromElement(context.element);
return !record.flagged;
}
}
}
Please refer snapshot
Attachments
bryntumvalidation.png
bryntumvalidation.png (145.16 KiB) Viewed 676 times

Post by mats »

What is the question / problem?

Post Reply