SpreadJS 13
GC.Spread.Sheets Namespace / Worksheet type / suspendDirty Method
In This Topic
    suspendDirty Method
    In This Topic
    Suspends recording the dirty data.
    Syntax
    var instance = new GC.Spread.Sheets.Worksheet(name);
    var value; // Type: any
    value = instance.suspendDirty();
    function suspendDirty() : any;
    Example
    //This example uses the suspendDirty method.
     var customers = [
                   { ID: 0, Name: 'A', Info1: 'Info0' },
                   { ID: 1, Name: 'B', Info1: 'Info1' },
                   { ID: 2, Name: 'C', Info1: 'Info2' },
                ];
    activeSheet.setDataSource(customers);
    activeSheet.suspendDirty();
    alert(activeSheet.isDirtySuspended());
    activeSheet.resumeDirty();
    alert(activeSheet.isDirtySuspended());
    See Also

    Reference

    Worksheet type