primeng icon indicating copy to clipboard operation
primeng copied to clipboard

DataTable rowIndex in body template is NaN

Open ilianiv opened this issue 9 years ago • 5 comments

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports) http://plnkr.co/edit/04PrXG?p=preview

Current behavior Index of the row is NOT available at the template.

Expected behavior Index of the row to be available at the template.

Minimal reproduction of the problem with instructions

Try to use let-index="rowIndex"

What is the motivation / use case for changing the behavior?

It does not work

  • Angular version: 2.4.X
  • PrimeNG version: 2.0.0-rc.1
  • Browser: all

ilianiv avatar Jan 27 '17 09:01 ilianiv

Maybe this is the same issue https://github.com/primefaces/primeng/issues/1910

ilianiv avatar Jan 27 '17 09:01 ilianiv

can confirm this. This bug makes new version 2.0 not usable for my project

Emdee89 avatar Jan 27 '17 13:01 Emdee89

Yes, I have this problem too. Would appreciate fixes.

Gwiny avatar Jan 30 '17 05:01 Gwiny

Update caused this problem! any fix ??

shajeeck avatar Jan 30 '17 18:01 shajeeck

Pull Request 1932 fixes this issue. https://github.com/primefaces/primeng/pull/1932

Looking forward to a fix, otherwise migration to PrimeNG 2 is not possible within our project.

Emdee89 avatar Jan 31 '17 18:01 Emdee89