Wijmo UI for the Web
columnDropping Field
wijmo.grid Namespace > IWijgridOptions Interface : columnDropping Field

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
var instance; // Type: wijmo.grid.IWijgridOptions;
var value; // Type: any
value = instance.columnDropping;
var columnDropping : any;
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

IWijgridOptions Interface