question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why I can't see the pagination on my grid, what I'm missing

See original GitHub issue

Please help?, Why I can’t see the pagination client side, I have this template and the fetch method in my page like the demo example, I can see the loaded grid, but without pagination

template: <div> <ngx-datatable class="material" [rows]="rows" [columns]="columns"> [columnMode]="'force'" [headerHeight]="50" [footerHeight]="50" [rowHeight]="'auto'" [limit]="10"> </ngx-datatable> </div>

export class CmpGrid { rows: Array<any> = [];

columns = [ { name: ‘Date & Time’ }, { name: ‘Unit’ }, { name: ‘Name’ }, { name: ‘Tag’ }, { name: ‘Expiration’ }, { name: ‘Location’ } ];

constructor() { this.fetch( data => { //I got my array data with other stuff inside data object this.rows = data.data; }); }

fetch(cb) {

const req = new XMLHttpRequest();
req.open('GET', '../../assets/data/entries.json');

req.onload = () => {
  cb(JSON.parse(req.response));
};

req.send();

}

///entries.json { “message”: “Success”, “valid”: true, “data”: [{ “unit”: “C05”, “expiration”: “03/04/2017”, “tag”: “”, “dateTime”: “03/04/2017 08:35”, “name”: “A1 ALUMINUM CHRIS” }, { “unit”: “D11”, “expiration”: “12/31/9999”, “tag”: “”, “dateTime”: “03/04/2017 08:31”, “name”: “3 AMIGOS LAWN” }, { “unit”: “AA07”, “expiration”: “12/31/9999”, “tag”: “”, “dateTime”: “03/04/2017 08:29”, “name”: “AA GOLF” },…] }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:20

github_iconTop GitHub Comments

4reactions
adammedfordcommented, Mar 29, 2017

It doesn’t look like you have footerHeight set on your grid, not necessarily because you haven’t provided it. Just emphasizing that testing should focus on that. I would expect to see ng-reflect-footer-height on the ngx-datatable element like the other inputs if you aren’t specifying them programmatically using View/ContentChildren.

3reactions
adammedfordcommented, Mar 29, 2017

You’re missing the material theme used in the demo. @import '/node_modules/@swimlane/ngx-datatable/release/themes/material.css';

Your footer is missing the below style (should appear in the panel on the right)

.ngx-datatable.material .datatable-footer { 
border-top: 1px solid rgba(0, 0, 0, 0.12);
font-size: 16px;
}

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't get pagination to show up in every page on a GridView ...
Your page numbers are disappearing because in the page index changing event ( PaginarCol() ), you are binding exactly one page of data, ......
Read more >
paging numbers are not displayed in Kendo UI for jQuery
I have a grid that I am filling via javascript. When I initially fill the grid, the paging numbers are not displayed.
Read more >
Just missing pagination on grid - WordPress.org
Hi,. There is no pagination for the grid reviews shortcode but you can use the attribute show_more to set the number of additional...
Read more >
Unable to implement grid paginator | Infragistics Forums
My app won't even build if I add it in. ... If I'm missing anything you would need to see, let me know....
Read more >
If you can't find a button or control in Pages on Mac
Click your Pages document and make sure the menu bar shows Pages next to the Apple menu . If the toolbar is missing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found