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.

Problem in Pagination

See original GitHub issue

I’m submitting a … (check one with “x”)

[] bug report => search GitHub for a similar issue or PR before submitting
[ ] feature request
[x ] support request => Please do not submit support request here

Current behavior Pagination is working fine but I am getting error in the console stating

Error in ./DataTableFooterComponent class DataTableFooterComponent - inline template:7:15 caused by: Cannot read property ‘toLocaleString’ of undefined ; Zone: angular ; Task: Promise.then ; Value:

Expected behavior

I am not sure why there is that error is coming. I checked that file and the object with which I am using this method is already defined as Number.

Reproduction of the problem

Please tell us about your environment:

  • Table version: 0.7.x
  • Angular version: 2.0.x
  • Browser: [ Chrome ]
  • Language: [TypeScript ES6/7 ]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
TINITUScommented, Mar 14, 2017

I still have this issue: I bind my table rows to the JSON of the respose:

getData() {
    return this.http
      .get('http://localhost:4200/assets/dnData.json')
      .map(res => res.json())
      .toPromise();
  }

and then I use this service method like:

this.FetchDataService.getData()
      .then((res) => {
        this.offset = res.start;
        this.limit = res.pageSize;
        this.count = res.totalHits;
        this.rows = res.entries.map(r => r.content);
      });

and despite the fact that the varaiables are initialized in the footer I still get the error

Error in ./DataTableFooterComponent class DataTableFooterComponent - inline template:7:15 caused by: Cannot read property ‘toLocaleString’ of undefined

0reactions
iget-mastercommented, Jun 29, 2017

@Neverminder Did you solved? I still getting the same issue here, I’ve started creating a pagination here, and when I put the footerHeight the error came.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How Do I Deal With Large-Scale Pagination Issues?
“We have four sites with many destination pages listing a lot of hotels. Our UX department decided to show a list of 10...
Read more >
SEO Pagination Issues: All You Need To Know In 2022
Duplicate content isn't an issue with pagination, because paginated pages will contain different content to the other pages in the sequence. For ...
Read more >
Pagination; You're Doing It Wrong! (Part 1)
One common indicator of incorrect pagination will be index bloat — this is not as great of a problem with small to medium-sized...
Read more >
Explore What Pagination Is and How to Implement It Properly
Pagination issues often appear on eCommerce websites, blogs, forums due to a great number of web pages. The most common problems are related ......
Read more >
What is pagination and how to resolve this issue?
Pagination refers to the concept of breaking a large set of data in smaller chunks so that it can easily be absorbed both...
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