Version 1
Common Interface IDataManagerNode GrapeCity DataViewsJS Interface

IDataManagerNode Interface

Defines data manager node.

Heirarchy

Properties

children

children: IDataManagerNode[]

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

collapsed

collapsed: boolean

The collapse status of this data scope

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 scope to the current scope

type

Returns scope type ('group' or 'node')

Methods

evaluate

  • evaluate(formula: string): any
  • Evaluates the formula with the current data 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