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

Parameters

e
The jQuery.Event object.
args
The data with this event.
Example
// Preventing user from grouping the "UnitPrice" column.
$("#element").wijgrid({
    columnGrouping: function (e, args) {
        return !(args.drag.headerText == "UnitPrice");
    }
});
Remarks
You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ columnGrouping: function (e, args) { // some code here }}); Bind to the event by type: $("#element").bind("wijgridcolumngrouping", function (e, args) { // some code here });

See Also

Reference

options type

 

 


© 2013 All Rights Reserved.

Send comments on this topic.