Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Always show vertical ScrollBar in SlickGrid

Tags:

slickgrid

I have a SlickGrid with a varying count of records in it. The application code will retrieve the data in "Chunks" of lets say 25 records each.

So i have my SlickGrid displayed with no records for a short time. Then the first 25 records arrive and are displayed -> no scrollbar is displayed, because there is enough space in the table.

Then the code retrieves the second set of 25 records and a scrollbar is needed and displayed.

Since everytime the table is sorted these requests are made, it can be very often. And the whole table is like jumping around because of the scrollbar appearing and disappearing every time.

Is there a way to force SlickGrid of displaying a scrollbar?

like image 334
Chris Avatar asked Dec 05 '25 06:12

Chris


1 Answers

through css

#myGrid .slick-viewport {
    overflow-y: scroll;
}
like image 74
kavun Avatar answered Dec 08 '25 05:12

kavun



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!