Wijmo UI for the Web
selectionChanged Event
The jQuery.Event object.
The data with this event.
The selectionChanged event handler is a function that is called after the selection is changed.
Syntax
Javascript (Usage) 
var instance; // Type: options
instance.selectionChanged = function(e, args) { };
Javascript (Specification) 
selectionChanged = function ( 
   e : Object,
   args : ISelectionChangedEventArgs
) { };

Parameters

e
The jQuery.Event object.
args
The data with this event.
Example
// Get the value of the first cell of the selected row.
$("#element").wijgrid({
    selectionMode: "singleRow",
    selectionChanged: function (e, args) {
        alert(args.addedCells.item(0).value());
    }
});
Remarks
You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ selectionChanged: function (e, args) { // some code here }}); Bind to the event by type: $("#element").bind("wijgridselectionchanged", function (e, args) { // some code here });

See Also

Reference

options type

 

 


© 2013 All Rights Reserved.

Send comments on this topic.