tonytomov/jqGrid — comment on commit ade910682a03d633737ef1499f46675122d1b86e
File:  line 0
By OlegKi:

Hello Tony!

I see that you works on the `setGroupHeaders` implementation. I worked yesterday also on the problem. So I decide, that it can be helpful if you see in which direction I worked. You can see [here] the current state. The most problems are solve. One have to make changes in the `remapColumns` mostly. The modified version of jqGrid modules are [grid.base.js](http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.1.2-20111003/js/grid.base1.js) and [grid.custom.js](http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.1.2-20111003/js/grid.custom1.js). I fixed small problem with `resizable: false` columns. I save the original value of the `width` parameter in `widthOrg` to hold the grid without horizontal scrolling after the column re-sizing if the grid was created without any fixed width value. Moreover I hope that I changed the problem with `shrinkToFit: true` correctly. The setting `forceFit:true` should also work now. By the way my changes are implied also for the standard grids (without multiline headers). I had to add one more parameter in `setGridWidth` to make `shrinkToFit` work correct in case of column resizing. The standard setting which I used to use is `shrinkToFit: false`, so please verify whether I did the changes like as should be.

Moreover I extended `$("#list")[0].grid` object with additional information. Additionally I extended `colModel` with `groupHeader`. Look additionally in the `grid.colIndexByName` map. I think it could be helpful in many places in the jqGrid.

I stop working on jqGrid for some hours to allow you to examine my changes and to decide what which way to choose.

Please look additionally the part where I increase the size of "span.ui-jqgrid-resize" and adjust position of "div.ui-jqgrid-sortable" inside of the column headers. I think one could find the better way to have full height of the "span.ui-jqgrid-resize". My current implementation work, but I don't like it really. What I additionally not like is the constants like `"padding-top": "2px", height: "19px"` in the code. Probably one can more use CSS classes, but the usage of "!important" attribute for resizing in the current jqGrid implementation of jqGrid (I mean your existing code) makes difficult to change the height of the span.

Best regards
Oleg