Wijmo UI for the Web
columnDragging Event
wijmo.grid.wijgrid Namespace > options type : columnDragging Event
The jQuery.Event object.
The data with this event.
The columnDragging event handler is a function that is called when column dragging has been started, but before the wijgrid handles the operation. This event is cancellable.
Syntax
$(function () {
    // Set columnDragging event handler function
    $(".selector").wijgrid({
        columnDragging : function (e, args) {
     
        }
    });
});
columnDragging = function ( 
   e : Object,
   args : IColumnDraggingEventArgs
) { };

Parameters

e
The jQuery.Event object.
args
The data with this event.
Example
// Preventing a user from dragging a specific column
$("#element").wijgrid({
    columnDragging: function (e, args) {
        return !(args.drag.dataKey == "ID");
    }
});
Remarks
You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ columnDragging: function (e, args) { // some code here }}); Bind to the event by type: $("#element").bind("wijgridcolumndragging", function (e, args) { // some code here });
See Also

Reference

options type
wijgrid jQuery Widget