Perspective Table Select Row

Hi all.

Using the perspective table, I’ve noticed that unless the user has already clicked a row inside the table themselves, I cannot select a row for them through changing the selectedRow parameter.

In this GIF you can see first a row has been selected by a user, then I can change the selected row by changing that parameter. Once that parameter goes to none/null (this might happen manually, or when new data is loaded), I can no longer select a row with that parameter.

2 Likes

Bro, can you please show how the code is done. Thanks in advance

In this example there is no code, just a number input component with its value bound bidirectionally to the selectedRow property of a table.

In order to make a selection you need to set the selectedColumn property after you set the row number. Note that it is the string name of the column not the index.