beforeColumnDrop

fires before a user drops a column

boolean beforeColumnDrop(string sourceId,string targetId){ ... };

Parameters

sourceIdstringthe id of the column to be dragged
targetIdstringthe id of the column where the dragged column will be dropped to

Returns

booleanfalse - to prevent dropping a column, otherwise true

Example

treegrid.events.on("BeforeColumnDrop", function(sourceId, targetId){
    // your logic here
    return false;
});

See also
Change log

added in v6.5

Back to top