Calendar excell Overlap

I saw the

grid.attachEvent(“onDhxCalendarCreated”, function(cal) {
cal.setPosition(-100, -100);
cal.setWeekStartDay(7);
});

But it does not seem to work. The event is being called, as the setWeekStartDay works. But the setPosition does not.

Attached is a screenshot from the designer showing the issue.


How can I get the calendar to popup above?

Please, try to use the following code:

mygrid.attachEvent("onCalendarShow", function(myCal,rId,colInd){ var cell = this.editor.cell; var pos = this.getPosition(cell); myCal.setPosition(pos[0],pos[1]-217) })

Works!