SpreadJS Documentation
GC.Spread.Sheets Namespace / Events type / 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.
The condition rule info by which to filter the column.
In This Topic
    RangeFiltering Event
    In This Topic
    Occurs when a column is about to be automatically filtered.
    Syntax
    var instance; // Type: Events
    instance.RangeFiltering = function(sheet, sheetName, col, filterValues, conditionInfo) { };
    RangeFiltering = function ( 
       sheet : Worksheet,
       sheetName : string,
       col : number,
       filterValues : Array,
       conditionInfo : Object
    ) { };

    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.
    conditionInfo
    The condition rule info by which to filter the column.
    Example
    This example uses the RangeFiltering event.
    var cellrange =new GC.Spread.Sheets.Range(0, 2, 5, 1);
    var hideRowFilter =new GC.Spread.Sheets.Filter.HideRowFilter(cellrange);
    activeSheet.rowFilter(hideRowFilter);
    
    activeSheet.bind(GC.Spread.Sheets.Events.RangeFiltering, function (e, info) {    
            alert("Col (" + info.col + ")");
    });
    See Also

    Reference

    Events type