I need a way to programmatically scroll to a specified row in a Lightning Datatable. In my case I want to scroll-into-view based on search results that return a row number or key.

Can someone point me to a solution?

Thanks, elJefe


I found an embarrassingly simple workaround to the scroll into view problem. Instead of implementing a custom search function for my DataTable I rely on the browser search capability (Command+F). As you step through the list of found items, the DataTable scrolls them into view.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.