ComponentOne GridView for ASP.NET WebForms
jQuery.wijmo.c1gridview Namespace / options type / cellClicked Event
The jQuery.Event object.
The data with this event.
In This Topic
    cellClicked Event
    In This Topic
    The cellClicked event handler is a function that is called when a cell is clicked. You can use this event to get the information of a clicked cell using the args parameter.
    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 cellClicked event handler function
    widgetInstance.option("cellClicked", function (e, args) { } );
    cellClicked = function ( 
       e : Object,
       args : wijmo.grid.ICellClickedEventArgs
    ) { };

    Parameters

    e
    The jQuery.Event object.
    args
    The data with this event.
    Example
    // The sample uses the cellClicked event to trigger an alert when the cell is clicked.
    $("#element").wijgrid({
    	cellClicked: function (e, args) {
    		alert(args.cell.value());
    	}
    });
    Remarks
    You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ cellClicked: function (e, args) { // some code here }}); * Bind to the event by type: $("#element").bind("wijgridcellclicked", function (e, args) { // some code here });
    See Also