Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by DavidO on Jun 17, 2008 17:01
open dhtmlx forum
Show vertical scrollbars all the time

Hello,

I have a TreeGrid where I leave a space between the last column and the edge of the gridbox container to allow for the vertical scrollbar to appear when the content is too long. This makes it so the horizontal scrollbar does not appear when the vertical scrollbar appears.

This looks strange though because the column header background appears all the way across the gridbox with nothing under it until the vertical scrollbar appears.

Is it possible to always display the vertical scrollbar without the slider so there's a consistent look?

Thank you.
Answer posted by Support on Jun 18, 2008 02:45
You can add next line to made vertical scroll always visible

    grid.objBox.style.overflowY="scroll";

Also, you can try to define the width of last column as  * - it will force column auto-size, so it will automatically decrease when vertical scroll appears.
Answer posted on Jun 24, 2008 16:32
That worked perfectly. Thank you.