Additional column in SlickGrid

SlickGrid always saves a small space on the right side of the title, even if there is no vertical scrollbar. This extra space seems like an extra column. I do not want this extra place.

I do not see any open SlickGrid component API to remove this. I saw inside the autosizeColumns () method of the SlickGrid implementation that the available width is calculated using availWidth = (parameters .autoHeight? ViewportW: viewportW - scrollbarDimensions.width) . When I avoid scrollbarDimensions.width from the logic, there is no extra space coming in there.

But this causes a problem for the forceFitColumns function, when there is a vertical scrollbar there, an unnecessary horizontal scrollbar is also displayed.

Is there any way to avoid this extra space?

Hi Tin,

I want to remove the extra SlickGrid space that I described earlier. I checked that there is no API or property for this in SlickGrid. This is why I changed the implementation of SlickGrid.

+4
source share
1 answer

I am using v2.1 and when I install:

options = { forceFitColumns: true }; slickgrid.setOptions(options); 

There is no extra column when vertical scrolling is not required.

0
source

All Articles