This is not a duplicate post as I've looked and cannot find anything with external status alterations. I've been on and off this topic searching for a few days now.
What I'm doing is the following.
I have the DataTable and a Map on my UI. The DataTable lists the data points that are on the Map.
I can select and multi select on the DataTable, which highlights the row on the data table and interacts with the map and plots highlighted data points just fine. The issue that I'm having is that when I use the map to select the DataTable does not reflect the selected row that goes with that data point on the map UNTIL I mouse over the DataTable which I'm assuming in the background triggers some sort of refresh. I don't have to click or do anything in the DataTable , it just automatically triggers itself and then shows all of the points that I selected within my map.
The variable that the html page binds to for [selected] is being properly called and its value is being set, it just does not reflect the highlights on the rows until the mouse enters the DataTable area. I don't have to click or do anything for it to trigger, it just does so on its own once the mouse enters the area.
Also, I have also tried to manually set the table selected value, e.g.
this.tableRef.selected = this.newRowSelection;
So my question is HOW DO I GET the DataTable to auto display when I make my external selection?
I don't want to DROP the table and Redraw the DataTable as I feel it would not create a good UX.
Appreciate any and all input on this.
=======================================================
Update: Wed 3/11/2020
So after more testing and debugging I can confirm that I am definitely setting the datatable.selected value to the [] of rows that should be selected.
However, again the rows do not highlight until I have moused over the datatable.
Anyone have any suggestions on how to get the datatable to just highlight automatically?
=======================================================