Enabling Paging and Summaries of the igxGrid through API does not work
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
- Download and run the attached sample application.
- Click the button on the bottom.
Result
Paging and Summary area are not visible.
Expected result
Paging and Summary area are visible.
Attachments
@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!
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.