Lucas Gabriel
Lucas Gabriel

Reputation: 35

how can I adjust jqGrid rows/columns to fill 100% of ths space?

my jqGrid columns don't fill all of the grid space. I've read some questions, found this answer, but it didn't work for me.

when the page loads, the grid looks like this:

jqGrid columns don't fill all the space

I'd be very grateful if someone could help me.

Thanks!

Upvotes: 0

Views: 686

Answers (1)

Oleg
Oleg

Reputation: 221997

The problem should not exist in the old form described in the old answer. If you would use height: "auto" or would use scrollOffset: 0 then the free space on the right side will be not visible. The default options used in free jqGrid (it's the fork which I develop) are changed a little(see readme and wiki). So that one can create the grid with less options and to have less problems like the problem in your question.

The free space on the right size exist typically because one use default options of jqGrid. The width of the free space corresponds the size of scrollOffset option which have static value in jqGrid. Free jqGrid instead (see here) set it dynamically inside of internal method fixScrollOffsetAndhBoxPadding which will be called inside of other internal methods finalReportSteps or finalReportVirtual at the end of every filling of the grid. So one will typically don't have the problems at all.

Upvotes: 1

Related Questions