function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VAIBHAV SRIVASTAVA 48VAIBHAV SRIVASTAVA 48 

vertical scrollbar in lightning datatable

I have a lightning datatable which is having various no. of columns.
Problem is that User has to scroll to right end to find the vertical scrollbar, I want the vertical scroller to be on the screen always so that whenver user wants to scroll down he can do it through scroller.
Please suggest any ideas how to achieve this.
DatatableDatatable vertical scroller
Dinesh_Kumar_NagarathinamDinesh_Kumar_Nagarathinam
Place your Lightning Datatable component with in <div> element, and set height for the div element.
Dimple ChandraniDimple Chandrani
@VAIBHAV SRIVASTAVA  Can u pls tell me how you have wrap your table heading in datatable in lwc component?
Marco Amadio TrailMarco Amadio Trail
Hi @VAIBHAV SRIVASTAVA, did you find a solution to this issue? I have the same problem. Thanks
james william 16james william 16
Thanks, Friends.
Yellowstone Kelly Reilly Shearling Fur Coat (https://www.oskarjacket.com/product/kelly-reilly-yellowstone-orange-shearling-fur-coat/)
 
Suraj Tripathi 47Suraj Tripathi 47
Hi VAIBHAV ,

Use this code:
<div class="slds-scrollable--y">Scrollable Content Here</div>



 If you find your Solution then mark this as the best answer.

 

  Thank you!


  Regards,
  Suraj Tripathi