SpreadJS 13
GC.Spread.Sheets Namespace / Worksheet type / getDataItem Method
The row index.
In This Topic
    getDataItem Method
    In This Topic
    Gets the data item.
    Syntax
    var instance = new GC.Spread.Sheets.Worksheet(name);
    var value; // Type: Object
    value = instance.getDataItem(row);
    function getDataItem( 
       row : number
    ) : Object;

    Parameters

    row
    The row index.

    Return Value

    The row data.
    Example
    This example uses the getDataItem method.
    var test = [
          { "Series0": 2, "Series1": 1 },
          { "Series0": 4, "Series1": 2 },
          { "Series0": 3, "Series1": 4 }
               ];
               activeSheet.autoGenerateColumns = true;
               activeSheet.setDataSource(test, false);
               alert(JSON.stringify(activeSheet.getDataItem(0)));
    See Also

    Reference

    Worksheet type