Class: ClientSideDataService
Description
The client-side DataService used when DataGridVueGrid.data is specified.
Implements
Properties
Property | Type |
---|---|
dataItems | any [] |
previousSortJson | string |
sorted | any [] |
previousFilterJson | string |
filtered | any [] |
Constructors
new ClientSideDataService(dataItems)
new ClientSideDataService(dataItems): ClientSideDataService
Parameters
Parameter | Type |
---|---|
dataItems | any [] |
Returns
Methods
sort()
sort(sort): void
Parameters
Parameter | Type |
---|---|
sort | Sort [] |
Returns
void
filter()
filter(filter): void
Parameters
Parameter | Type |
---|---|
filter | undefined | Filter |
Returns
void
getPageAsync()
getPageAsync(
pageNum,
pageSize,
sort,
filter): Promise<PageData>
Called to get data for the currently rendered page.
Parameters
Parameter | Type | Description |
---|---|---|
pageNum | number | The 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 . |
pageSize | number | The 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 . |
sort | Sort [] | The current column sort definitions in the order in which they should be applied. |
filter | undefined | Filter | The current filter definition or undefined if no filter is set. |
Returns
A Promise that returns the PageData for the current page.
Implementation of
DataService
.getPageAsync