I am using grid header menu from 3.6 version.
declaration:
myGrid.enableHeaderMenu();
extends the _showHContext and implement my logic on these methods it works fine on 4.0 also, but in 4.1.2 i am getting Exception like:
TypeError: this._hContext is undefined
this._hContext.parentNode.removeChild(this._hContext);
dhtmlXGridObject.prototype._showHContext = function (mode, x, y)
{
if (mode && this.enableColumnMove) {
this._hContext.parentNode.removeChild(this._hContext);
this._hContext = null;
}
this._createHContext();
this._hContext.style.display = (mode ? ‘block’ : ‘none’);
if (mode) {
this._updateHContext(true);
this._hContext.style.left = x + “px”;
this._hContext.style.top = y + “px”;
isHeaderMenuShowed = true;
} else {
if (isHeaderMenuShowed == true) {
isHeaderMenuShowed = false;
hidestatus();
}
}
}
dhtmlXGridObject.prototype._createHContext = function ()
{
}
dhtmlXGridObject.prototype._updateHContext = function ()
{
}
Is there is any change in 4.1.2,
please give the implementation for these prototypes also