DataTable and selection index

UI Components for React
Post Reply
johndoe87
Posts: 1
Joined: 12 Nov 2017, 02:58

12 Nov 2017, 03:03

Hi. Could you tell me how I could acquire the index of a selected row in DataTable? Or what would be even better is to associate some "datakey" with each row which would be invisible for the UI user.
Is it currently possible with PrimeReact? PS. I cannot seem to find any full Library Reference/Documentation for PrimeReact like the one which exists for PrimeFaces here: https://www.primefaces.org/documentation/. Thx.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

05 Dec 2017, 19:52

Where do you want to access the row index? During rendering, onRowSelect or both?

Docs for datatable are at;

http://localhost:3000/#/datatable

camille68
Posts: 2
Joined: 05 Jan 2018, 18:41

05 Jan 2018, 18:44

I have the same need. I would expect onSelectionChange event to hold not only the row data but also the row index

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests