Hello Tony,
I posted before the suggesting in GitHub, but because it was combined with other suggestions I decide to describe the changes in the feature request.
In many cases it is very helpfull to have this initialized to the DOM element of the grid (the main table). It allows to access all parameters of jqGrid per this.p and access all other grid specific settings which are sometimes helpful. In many places of the code one do this already, but in some other places (espacially in grid.formedit.js and grid.common.js) it will be not hold. So the this will be initialized to global window which get no helpful information.
I suggest to make the coresponding changes in the code of jqGrid. As the first step I collect here the changes to set this for formatters and unformatters. Additionally in the simple change I suggest to include colName additional property in the options of formetter. The property can be helpful for example if one constructs title
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top