Skip to content

Client cannot render response from Server - GridShared.Pagination.PagingType #414

@puchalskipl

Description

@puchalskipl

Describe the bug
Backend respond with items, e.g.
{ "items": [ { "id": "1" } ], "totals": { "sum": {}, "average": {}, "max": {}, "min": {}, "calculations": {} }, "pager": { "pagingType": "Pagination", "pageSize": 20, "currentPage": 1, "itemsCount": 2, "startIndex": 0, "virtualizedCount": 0, "enablePaging": false } }

Client cannot deserialized it, error message from browser console:
The JSON value could not be converted to GridShared.Pagination.PagingType. Path: $.pager.pagingType | LineNumber: 0 | BytePositionInLine: 9562.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: chrome, edge
  • Version: Client (GridBlazor) 5.0.12, Server (GridMvcCore) 7.0.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions