Problem using dhxCalendarA

When try to define cell type using dhxCalendarA
following javascript error occured

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1; MS-RTC LM 8)
Timestamp: Tue, 17 May 2011 06:50:12 UTC

Message: ‘cal’ is undefined
Line: 11
Char: 579
Code: 0

looks like cal has not been initialize under following function

function eXcell_dhxCalendarA(cell) {
if (cell) {
this.cell = cell;
this.grid = this.cell.parentNode.grid;
if (!this.grid._grid_calendarA) {
var z = document.createElement(“DIV”);
document.body.insertBefore(z, document.body.firstChild);
this.grid._grid_calendarA = new dhtmlxCalendarObject(z, false, {
isYearEditable : true
});
this.grid._grid_calendarA.loadUserLanguage(‘en-us’);
this.grid._grid_calendarA.setYearsRange(1900, 2100);
this.grid._grid_calendarA.draw();
this.grid._grid_calendarA.hide();
this.grid._grid_calendarA.setSkin(“yahoolike”);
this.grid.callEvent(“onDhxCalendarCreated”, [ cal ]);
var sgrid = this.grid;
this.grid._grid_calendarA.attachEvent(“onClick”, function() {
this._last_operation_calendar = true;
window.setTimeout(function() {
sgrid.editStop()
}, 1);
return true;
});
var zFunc = function(e) {
(e || event).cancelBubble = true;
};
dhtmlxEvent(this.grid._grid_calendarA.entObj, “click”, zFunc);
}
}
};

This issue has been fixed at the latest version of dhtmlxGrid. Please update your files

I’m already using the v.2.6 files, is this the latest version?

Try to replace your dhtmlxgrid_excell_dhxcalendar.js file with file from attachment
dhtmlxgrid_excell_dhxcalendar.zip (2.01 KB)