Can you set a selected row in a data grid

I have a data grid with several sites listed (with other data) I have a leaflet map showing each of the same items as map markers.

when someone clicks on a map marker ( marker click event) I’d like to “select” the corresponding row of the data grid. the data grid seems to only have “get selected row” with no way to set a row as selected.

is there anyway to do this?

thanks,
H

It will require manipulation of the DOM structure at the raw JS level to assign a CSS class, it will not be easy with the DataTable component. If that functionality is absolutely needed, you might be better off creating a home-grown data table where you have a higher degree of control for the individual row styling.

Hello, I just want to check whether it is still the case that it’s not possible to specify selected row when using the marketplace data grid component. Many thanks in advance.

Hello @Bob_Leung

I’m sorry, but the development of this functionality is currently on hold, as there are some other tasks, sorry for the inconvenience. I hope that in the near future (maybe within this week or next) we will be able to add this and some other features to the Data Grid component.

Regards,
Zahar

Thanks @Zahar_Mychka for your speedy response. Fully respecting the prioritisation.

For what it’s worth, I find the Data Grid component to be excellent. 90% of the time I use it and the only times where I don’t are:

a) when I need to show pre-selected rows.
b) when I want to bold a column or style a cell based on the values.

Of course, the actual component where datagrid is ported from can do these things, so really look forward to you being able to do this!

unfortunately the elimination springboard also killed my project so this is not an issue for me any more.

Hello @hharrington

We’re sorry to hear that, but you can use our other plans, including our free plan.

Regards,
Volodymyr

The free plan forced me to delete most of the data in the database and did did not allow enough queries ( I’m no longer familiar with the exact terminology any more ) to allow for a full demo to run.

John

@Bob_Leung , @hharrington,

The Data Grid component and its documentation have been updated with new features. If you have any difficulties with the new features, let us know.

Regards,
Bohdan