Skip to content

onBeforeColumnDrop

fires the moment you drop the column to its target position

function onBeforeColumnDrop(
// the source column id
sourceId: string,
// the target column id
targetId: string,
// object the native event object
event: Event
): void
datagrid1.attachEvent("onBeforeColumnDrop",
function(sourceId, targetId, event){
// some code
return true;
});

The event is blockable. Returning false will prevent column dropping.

Articles

API