Class: ServerSideDataService
Description
The server-side DataService used when DataGridVueGrid.serverSideOptions is specified. This data service will only attempt to deserialize the response body if the HTTP status code is 200 OK
and the Content-Type
response header is application/json
.
Implements
Properties
Property | Type |
---|---|
options | ServerSideDataServiceOptions |
Constructors
new ServerSideDataService(options)
new ServerSideDataService(options): ServerSideDataService
Parameters
Parameter | Type |
---|---|
options | ServerSideDataServiceOptions |
Returns
Methods
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