primeng icon indicating copy to clipboard operation
primeng copied to clipboard

p-datatable - Any way to select a row programatically.

Open garethlewis opened this issue 10 years ago • 3 comments

I have a situation where on Google Maps, I select an overlay, which could be a polygon or circle. When selected, is brings up a s floating div containing the list of objects that are on the map, but I can't see which one is selected. Is there a way to pass the selected row so the table high lights it?

garethlewis avatar Aug 08 '16 14:08 garethlewis

Blond moment, not a problem really.

garethlewis avatar Aug 08 '16 15:08 garethlewis

@garethlewis Have you found out how to select a row programmatically?

dereklin avatar Feb 20 '17 08:02 dereklin

If you have a reference to the underlying model that represents the data that the table shows, you can set a reference to the selected item to one of these items and the table will update itself.

garethlewis avatar Feb 20 '17 08:02 garethlewis