igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

Enabling Paging and Summaries of the igxGrid through API does not work

Open tachojelev opened this issue 8 years ago • 2 comments

Description

Enabling Paging and Summaries of the igxGrid does not work through API.

NOTES: If the browser windows is resized, both the paging and the summary area get displayed.

Steps to reproduce

  1. Download and run the attached sample application.
  2. Click the button on the bottom.

Result

Paging and Summary area are not visible.

Expected result

Paging and Summary area are visible.

Attachments

refreshissue gridSample.zip

tachojelev avatar Jun 13 '18 07:06 tachojelev

@tachojelev Call markForCheck after setting these inputs. The reason why we do not react to this out of the box is that if there's hundreds of columns, and summaries are set on each column on init, then change detection would be ran hundreds of times.

This should work for paging though!

kdinev avatar Jun 14 '18 08:06 kdinev

Fixed the paging input to properly update the grid and I kept the current behavior of hasSummary intact for the aforementioned reasons. Note that you need to call reflow instead of markForCheck for hasSummaries to update properly.

DDavidkov avatar Jun 18 '18 11:06 DDavidkov