vmware-clarity / ng-clarity

Clarity Angular is a scalable, accessible, customizable, open-source design system built for Angular.
https://clarity.design
Other
335 stars 72 forks source link

Pagination is not working correctly for server driven Datagrid #1526

Closed baggsie closed 1 month ago

baggsie commented 1 month ago

This is a bug report for the @clr Angular or UI versions of the design system. For the web-component implementation of Clarity (@cds), visit vmware-clarity/core.

Describe the bug

Hi,

When using a server driven Datagrid component the pagination is not correctly rendered :

How to reproduce

See the stackblitz example from the docs :

Expected behavior

image

Actual behavior

image

Versions

Clarity version:

Framework version: Angular 16 (Stackblitz)

Device:

Rebolon commented 1 month ago

Hello baggsie, To my mind, you have to specify manually the input [clrDgTotalItems]. So when the server return you the total items, you send it to the ClrDgPagination, and then the paginator will work finely.

baggsie commented 1 month ago

Thanks @Rebolon ;)

LynxDelli commented 1 month ago

The bug is just in the stackblitz sample - thanks for noticing it https://stackblitz.com/edit/b3hxvn?file=src%2Fapp%2Fexample.component.html Will be updated.

github-actions[bot] commented 1 week ago

Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.