tonytomov/jqGrid — pull request #250 by OlegKi (2012-01-21 12:59:29+00:00)
Title: extend options of formatter with colNames

Hello Tony,

the change is very simple. Currently `options` parameter of the custom formatter contains only the information about `colModel`. Sometimes, for example if one set `title` attribute for the tooltips, it would be practical to have access to the information from the corresponding element of `colNames`.

In [the demo](http://www.ok-soft-gmbh.com/jqGrid/Checkbox1.htm) for example the `(options.colModel.label || options.colModel.name)` will be used for the tooltip on the checkbox, but because `colNames` are used, the `label` is not defined and one can display only `colModel.name`.

[The fixed demo](http://www.ok-soft-gmbh.com/jqGrid/Checkbox3.htm) uses `clickableCheckbox` custom formatter defined [here](http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.3.1/plugin/jQuery.jqGrid.clickableCheckbox.js) which uses new `options.colName`.

Best regards
Oleg
P.S. Please take a look in [the updated pull request](https://github.com/tonytomov/jqGrid/pull/244) which contains [this in formatter and unformatter](https://github.com/OlegKi/jqGrid/commit/1f4f0afc6466ec0c81968ea3743b9c03d3b5abf9) together with the previous suggestion to use `jqGridLoadComplete` to fill the filter toolbar with the information from `postData.filters`.