onBeforeColumnDrop

fires the moment you drop the column to its target position

void onBeforeColumnDrop(string sourceId,string targetId,Event object event);
sourceIdstringthe source column id
targetIdstringthe target column id
eventEvent objectthe native event object

Example

$$("datatable1").attachEvent("onBeforeColumnDrop", 
    function(sourceId, targetId, event){
        // some code
        return true;
    });

Details

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

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix easy javascript framework and page of javascript excel viewer product.