valor-software / ng2-table

Simple table extension with sorting, filtering, paging... for Angular2 apps
http://valor-software.github.io/ng2-table/
MIT License
554 stars 336 forks source link

Increased column size, data not showing. #591

Open kumaranish8888 opened 6 years ago

kumaranish8888 commented 6 years ago

I removed table.data and took those data in a separate json file and implemented through http calls and it worked properly. Once I increased number of columns, and prepared a json response for it, ofcourse the columns heading showed up but the data doesn't. Looking at the pagination I can see that it has 9 pages (as i have 87 entries) so I know that I am receiving all the data from the json response but nothing shows up, and when I am clicking on pagination it gives me -> item[column.name].match is not a function. Any help or suggestion is welcome.

itsnotme01 commented 6 years ago

Hello,

I hope you resolved your problem since you posted this message but for others:

The item[column.name].match error is due to an item with null value in your data. You need to replace your null values by empty strings then your data should be displayed.

This issue seems to be a duplicate of the #412 (where i found the solution)