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

Parameters

e
The jQuery.Event object.
args
The data with this event.
Example
// Preventing user from dropping any column before the "ID" column.
$("#element").wijgrid({
    columnDropping: function (e, args) {
        return !(args.drop.dataKey == "ID" && args.at == "left");
    }
});
Remarks
You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ columnDropping: function (e, args) { // some code here }}); Bind to the event by type: $("#element").bind("wijgridcolumndropping", function (e, args) { // some code here });
See Also

Reference

options type
wijgrid jQuery Widget