Wijmo UI for the Web
columnResizing Event
The jQuery.Event object.
The data with this event.
The columnResizing event handler is called when a user resizes the column but before the wijgrid handles the operation. This event is cancellable.
Syntax
Javascript (Usage) 
var instance; // Type: options
instance.columnResizing = function(e, args) { };
Javascript (Specification) 
columnResizing = function ( 
   e : Object,
   args : IColumnResizingEventArgs
) { };

Parameters

e
The jQuery.Event object.
args
The data with this event.
Example
// Prevent setting the width of "ID" column less than 100 pixels
$("#element").wijgrid({
    columnResizing: function (e, args) {
        if (args.column.dataKey == "ID" && args.newWidth < 100) {
            args.newWidth = 100;
        }
    }
});
Remarks
You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ columnResizing: function (e, args) { // some code here }}); Bind to the event by type: $("#element").bind("wijgridcolumnresizing", function (e, args) { // some code here });

See Also

Reference

options type

 

 


© 2013 All Rights Reserved.

Send comments on this topic.