onBeforeColumnDropOrder

fires the moment you drop the column over the target area

void onBeforeColumnDropOrder(string sourceId,string targetId,Event event);
sourceIdstringthe source column id
targetIdstringthe target column id
eventEventthe native event object

Example

$$("datatable1").attachEvent("onBeforeColumnDropOrder",
    function(src, targ, event){
        // some code
        return true;
    });

Related samples

Details

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

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