Class DataView

Item -> Data by index Row -> Data by row

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(options?: DataViewOptions): DataView

Parameters

Returns

DataView

Properties

public onPagingInfoChanged: Event

public onRowCountChanged: Event

public onRowsChanged: Event

Methods

public addItem(item: T in Slick.Data.DataView<T extends SlickData>)

Parameters

  • item: T in Slick.Data.DataView<T extends SlickData>

public beginUpdate()

public collapseAllGroups(level?: number)

Parameters

  • level?: number optional

    Optional level to collapse. If not specified, applies to all levels.

public collapseGroup(varArgs?: Array<string>)

Parameters

  • varArgs?: Array<string> optional

    Either a Slick.Group's "groupingKey" property, or a variable argument list of grouping values denoting a unique path to the row. For example, calling collapseGroup('high', '10%') will collapse the '10%' subgroup of the 'high' setGrouping.

public deleteItem(id: string)

Parameters

  • id: string

public endUpdate()

public expandAllGroups(level?: number)

Parameters

  • level?: number optional

    Optional level to collapse. If not specified, applies to all levels.

public expandGroup(varArgs?: Array<string>)

Parameters

  • varArgs?: Array<string> optional

    Either a Slick.Group's "groupingKey" property, or a variable argument list of grouping values denoting a unique path to the row. For example, calling expandGroup('high', '10%') will expand the '10%' subgroup of the 'high' setGrouping.

public fastSort(field: string, ascending: boolean)

Parameters

  • field: string
  • ascending: boolean

public fastSort(field: Function, ascending: boolean)

Parameters

  • field: Function
  • ascending: boolean

public getGrouping(): GroupingOptions

Returns

GroupingOptions

public getGroups(): Group[]

Returns

Group[]

public getIdxById(): string

Returns

string

public getItem(index: number): T in Slick.Data.DataView<T extends SlickData>

Parameters

  • index: number

Returns

T in Slick.Data.DataView<T extends SlickData>

public getItemById(id: any): T in Slick.Data.DataView<T extends SlickData>

Parameters

  • id: any

Returns

T in Slick.Data.DataView<T extends SlickData>

public getItemByIdx(): T in Slick.Data.DataView<T extends SlickData>

Returns

T in Slick.Data.DataView<T extends SlickData>

public getItemMetadata()

public getItems(): Array<T extends Slick.SlickData>

Returns

Array<T extends Slick.SlickData>

public getLength(): number

Returns

number

public getPagingInfo(): PagingOptions

Returns

PagingOptions

public getRowById(): T in Slick.Data.DataView<T extends SlickData>

Returns

T in Slick.Data.DataView<T extends SlickData>

public groupBy(valueGetter: any, valueFormatter: any, sortComparer: any)

deprecated

Parameters

  • valueGetter: any
  • valueFormatter: any
  • sortComparer: any

public insertItem(insertBefore: number, item: T in Slick.Data.DataView<T extends SlickData>)

Parameters

  • insertBefore: number
  • item: T in Slick.Data.DataView<T extends SlickData>

public mapRowsToIds(rowArray: Array<T extends Slick.SlickData>): Array<string>

Parameters

  • rowArray: Array<T extends Slick.SlickData>

Returns

Array<string>

public reSort()

public refresh()

public setAggregators(groupAggregators: any, includeCollapsed: any)

deprecated

Parameters

  • groupAggregators: any
  • includeCollapsed: any

public setFilter(filterFn: (item: T, args: any) => boolean)

Parameters

  • filterFn: (item: T, args: any) => boolean

public setFilterArgs(args: any)

Parameters

  • args: any

public setGrouping(groupingInfo: GroupingOptions)

Parameters

public setItems(data: Array<T extends Slick.SlickData>, objectIdProperty?: string)

Parameters

  • data: Array<T extends Slick.SlickData>
  • objectIdProperty?: string optional

public setPagingOptions(args: PagingOptions)

Parameters

public setRefreshHints(hints: RefreshHints)

Parameters

public sort(comparer: Function, ascending: boolean)

Parameters

  • comparer: Function
  • ascending: boolean

public syncGridCellCssStyles(grid: Grid, key: string)

Parameters

  • grid: Grid
  • key: string

public syncGridSelection(grid: Grid, preserveHidden: boolean)

Parameters

  • grid: Grid
  • preserveHidden: boolean

public updateItem(id: string, item: T in Slick.Data.DataView<T extends SlickData>)

Parameters

  • id: string
  • item: T in Slick.Data.DataView<T extends SlickData>