Version 1
IDataManagerNode GrapeCity DataViewsJS Interface

IDataManagerNode Interface

Defines data manager node.

Heirarchy

  • IDataManagerNode

Properties

children

children: IDataManagerNode[]

An array of DataManagerNode that contains the child sub-nodes.

collapsed

collapsed: boolean

The collapse status of this node.

level

level: number

The level of this node.

parent

The parent node.

path

path: number[]

An array of indexes that indicate the path from the root node to the current node.

Methods

evaluate

  • evaluate(formula: string): any
  • Evaluates the formula with the current sub-hierarchy context.

    Parameters

    • formula: string

      The formula to be evaluated.

    Returns any

    The evaluated result.

findChildNodeByPath

  • Gets the child node from the relative path of this node

    Parameters

    • path: number | number[]

      A array of numbers which indicate the relative path of the child node

    Returns IDataManagerNode

    The child node

getCalculatedColumnValues

  • getCalculatedColumnValues(name: string): any[]
  • Gets all cell values of the specified calculated column

    Parameters

    • name: string

      The name of the calculated column

    Returns any[]

    Array of calculated column values

getItem

  • getItem(): IDataItem
  • Gets the data item of this node.

    Returns IDataItem

getSourceRowIndex

  • getSourceRowIndex(): number
  • Gets the source row index of this node

    Returns number