ASP.NET MVC Controls | ComponentOne
In This Topic
    Sheet Class
    In This Topic
    File
    wijmo.grid.sheet.js
    Module
    wijmo.grid.sheet
    Derived Classes
    SheetCollection

    Represents a sheet within the FlexSheet control.

    Constructor

    constructor

    constructor(owner?: FlexSheet, grid?: FlexGrid, sheetName?: string, rows?: number, cols?: number): Sheet
    

    Initializes a new instance of the Sheet class.

    Parameters
    • owner: FlexSheet Optional

      The owner FlexSheet control.

    • grid: FlexGrid Optional

      The associated FlexGrid control used to store the sheet data. If not specified then the new FlexGrid control will be created.

    • sheetName: string Optional

      The name of the sheet within the FlexSheet control.

    • rows: number Optional

      The row count for the sheet.

    • cols: number Optional

      The column count for the sheet.

    Returns
    Sheet

    Properties

    columnCount

    Gets or sets the number of columns in the sheet.

    Type
    number

    filterSetting

    Gets or sets the filter setting for this sheet.

    Type
    IFilterSetting

    grid

    Gets the associated FlexGrid control used to store the sheet data.

    Type
    FlexGrid

    itemsSource

    Gets or sets the array or ICollectionView for the FlexGrid instance of the sheet.

    Type
    any

    name

    Gets or sets the name of the sheet.

    Type
    string

    rowCount

    Gets or sets the number of rows in the sheet.

    Type
    number

    selectionRanges

    Gets the selection array.

    Type
    ObservableArray

    tables

    Gets the collection of the Table objects on this Sheet. It allows to insert/remove Table on this Sheet via the tables collection.

    Type
    ObservableArray

    visible

    Gets or sets the sheet visibility.

    Type
    boolean

    Methods

    addTableFromArray

    addTableFromArray(row: number, column: number, array: any[], properties?: string[], tableName?: string, tableStyle?: TableStyle, options?: ITableOptions, shift?: boolean): Table
    

    Add table from an object array.

    Parameters
    • row: number

      The row position of the table.

    • column: number

      The column position of the table.

    • array: any[]

      The object array load to the table.

    • properties: string[] Optional

      It allows to retrieve only a subset of columns from the object of the array. If it is omitted, the table will load all the keys of the object of the array.

    • tableName: string Optional

      The name of the table.

    • tableStyle: TableStyle Optional

      The table style is applied to the table.

    • options: ITableOptions Optional

      The options ITableOptions of the table.

    • shift: boolean Optional

      Indicates whether cells beneath the table should be shifted or not. If not specified cells beneath will be shifted.

    Returns
    Table

    dispose

    dispose(): void
    

    Dispose sheet instance.

    Returns
    void

    findTable

    findTable(rowIndex: number, columnIndex: number): Table
    

    Finds the table via the cell location.

    Parameters
    • rowIndex: number

      the row index of the specified cell.

    • columnIndex: number

      the column index of the specified cell.

    Returns
    Table

    getCellStyle

    getCellStyle(rowIndex: number, columnIndex: number): ICellStyle
    

    Gets the style of specified cell.

    Parameters
    • rowIndex: number

      the row index of the specified cell.

    • columnIndex: number

      the column index of the specified cell.

    Returns
    ICellStyle

    onNameChanged

    onNameChanged(e: PropertyChangedEventArgs): void
    

    Raises the nameChanged event.

    Parameters
    Returns
    void

    onVisibleChanged

    onVisibleChanged(e: EventArgs): void
    

    Raises the visibleChanged event.

    Parameters
    Returns
    void

    Events

    nameChanged

    Occurs after the sheet name has changed.

    Arguments
    PropertyChangedEventArgs

    visibleChanged

    Occurs after the visible of sheet has changed.

    Arguments
    EventArgs