ComponentOne GridView for ASP.NET WebForms
jQuery.wijmo.c1gridview Namespace / options type / columnUngrouping Event
The jQuery.Event object.
The data with this event.
In This Topic
    columnUngrouping Event
    In This Topic
    The columnUngrouping event handler is called when a column has been removed from the group area but before the wjgrid handles the operation. This event is cancellable.
    Syntax
    var options; // Type:  jQuery.wijmo.c1gridview.options
    
          // Create a new c1gridview widget
          $(".selector").c1gridview(options);
    
          // Get a previously created c1gridview widget instance
          var widgetInstance; // Type:  jQuery.wijmo.c1gridview
          widgetInstance = $(".selector").data("wijmo-c1gridview");
    
          // Set columnUngrouping event handler function
    widgetInstance.option("columnUngrouping", function (e, args) { } );
    columnUngrouping = function ( 
       e : Object,
       args : wijmo.grid.IColumnUngroupingEventArgs
    ) { };

    Parameters

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