ComponentOne GridView for ASP.NET WebForms
jQuery.wijmo.c1gridview Namespace / options type / columnDragged Event
The jQuery.Event object.
The data with this event.
In This Topic
    columnDragged Event
    In This Topic
    The columnDragged event handler is a function that is called when column dragging has been started. You can use this event to find the column being dragged or the dragged column's location.
    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 columnDragged event handler function
    widgetInstance.option("columnDragged", function (e, args) { } );
    columnDragged = function ( 
       e : Object,
       args : wijmo.grid.IColumnDraggedEventArgs
    ) { };

    Parameters

    e
    The jQuery.Event object.
    args
    The data with this event.
    Example
    // Supply a callback function to handle the columnDragged event:
    $("#element").wijgrid({
    	columnDragged: function (e, args) {
    		alert("The '" + args.drag.headerText + "' column is being dragged from the '" + args.dragSource + "' location");
    	}
    });
    Remarks
    You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ columnDragged: function (e, args) { // some code here }}); * Bind to the event by type: $("#element").bind("wijgridcolumndragged", function (e, args) { // some code here });
    See Also