Wijmo UI for the Web
cellClicked Event
The jQuery.Event object.
The data with this event.
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
Javascript (Usage) 
$(function () {
    // Set cellClicked event handler function
    $(".selector").wijgrid({
        cellClicked : function (e, args) {
     
        }
    });
});
Javascript (Specification) 
cellClicked = function ( 
   e : Object,
   args : 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

Reference

options type
wijgrid jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.