SpreadJS Documentation
RangeFiltering Event
The sheet that triggered the event.
The sheet's name.
The index of the column to be automatically filtered.
The values by which to filter the column.
Occurs when a column is about to be automatically filtered.
Syntax
var instance; // Type: Events
instance.RangeFiltering = function(sheet, sheetName, col, filterValues) { };
RangeFiltering = 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 to be automatically filtered.
filterValues
The values by which to filter the column.
Example
This example uses the RangeFiltering 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.RangeFiltering, function (e, info) {    
        alert("Col (" + info.col + ")");
});
See Also

Reference

Events type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.