Class: ClientSideDataService

Description

The client-side DataService used when DataGridVueGrid.data is specified.

Implements

Properties

PropertyType
dataItemsany[]
previousSortJsonstring
sortedany[]
previousFilterJsonstring
filteredany[]

Constructors

new ClientSideDataService(dataItems)

new ClientSideDataService(dataItems): ClientSideDataService

Parameters

ParameterType
dataItemsany[]

Returns

ClientSideDataService

Methods

sort()

sort(sort): void

Parameters

ParameterType
sortSort[]

Returns

void


filter()

filter(filter): void

Parameters

ParameterType
filterundefined | Filter

Returns

void


getPageAsync()

getPageAsync(
   pageNum, 
   pageSize, 
   sort, 
filter): Promise<PageData>

Called to get data for the currently rendered page.

Parameters

ParameterTypeDescription
pageNumnumberThe page number for the page to load starting with 1 for the first page.
If the data grid is not set configured to be pageable with the DataGridVueGrid.paged
prop then this will always be -1.
pageSizenumberThe maximum number of data items to display on each page. If the data grid is
not set configured to be pageable with the DataGridVueGrid.paged prop then this
will always be -1.
sortSort[]The current column sort definitions in the order in which they should be applied.
filterundefined | FilterThe current filter definition or undefined if no filter is set.

Returns

Promiseopen in new window<PageData>

A Promise that returns the PageData for the current page.

Implementation of

DataService.getPageAsync