SpreadJS Documentation
RangeFiltered Event
The sheet that triggered the event.
The sheet's name.
The index of the column that was automatically filtered.
The values by which the column was filtered.
Occurs when a column has just been automatically filtered.
Syntax
var instance; // Type: Events
instance.RangeFiltered = function(sheet, sheetName, col, filterValues) { };
RangeFiltered = function ( 
   sheet : Sheet,
   sheetName : string,
   col : number,
   filterValues : Array
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
col
The index of the column that was automatically filtered.
filterValues
The values by which the column was filtered.
Example
This example uses the RangeFiltered event.
var cellrange =new GcSpread.Sheets.Range(0, 2, 5, 1);
var hideRowFilter =new GcSpread.Sheets.HideRowFilter(cellrange);
activeSheet.rowFilter(hideRowFilter);

$("#spreadContainer").data("spread").getActiveSheet().bind(GcSpread.Sheets.Events.RangeFiltered, function (e, info) {    
        alert("Col (" + info.col + ")");
});
See Also

Reference

Events type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.