Skip to content

onBeforeColumnDropOrder

fires the moment you drop the column over the target area

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

also check the next samples:

The event is blockable. Returning false will prevent column from being dropped if the order mode is enabled.

Articles

API