You need to sign in to do that
Don't have an account?
ChrisYaz
Reset scroll bar on a lightning:datatable?
I implemented a component with a lightning datatable. There will be a large list of records so I have also included pagination. All of this is working fine except for the scroll bar. When I do a "component.set" on the lightning:datatable the new list of records is refreshed however the scroll bar remains at the bottom or wherever the user last left off.
Is there a way to scroll the bar to the top automatically or set focus on the first row in the new list?
Is there a way to scroll the bar to the top automatically or set focus on the first row in the new list?
Please refer to the below links which might help you further with the above requirement.
https://developer.salesforce.com/forums/?id=906F0000000AeE2IAK
https://salesforce.stackexchange.com/questions/78514/scroll-to-top-in-a-lightning-component
https://salesforce.stackexchange.com/questions/197200/scroll-page-to-top-onclick-of-a-button-in-saleforce1
https://developer.salesforce.com/forums/?id=9060G0000005YtaQAE
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.
http://salesforce.stackexchange.com/questions/78514/scroll-to-top-in-a-lightning-component
https://developer.salesforce.com/forums/?id=9060G000000Xc2uQAC