а

Position of DhtmlxCalendar in a field on a DhtmlxGrid


#1

Hi Everyone,

Is There a way to define the position of a DhtmlxCalendar on DhtmlxGrid?
When I open a dhtxCalendar, part of the calendar gets hidden because the size of the screen.
And I don’t know how to put it above the field.
I’m attaching the print that shows the problem.

Regards,


#2

The only way is to change the position of the calendar manually using the onCalendarShow event.
For example:

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


#3

Thanks,

That worked well!