after call mygrid.setCellExcellType(id, 1, “dhxCalendarA”), there will be a dhtmlxCalendar attach to the dhtmlxGrid,
but after call dhtmlxGrid.clearAll(), the dhtmlxCalendar still in the dom,
this will cause a memory leak.
thanks!
after call mygrid.setCellExcellType(id, 1, “dhxCalendarA”), there will be a dhtmlxCalendar attach to the dhtmlxGrid,
but after call dhtmlxGrid.clearAll(), the dhtmlxCalendar still in the dom,
this will cause a memory leak.
thanks!
clearAll call destroys data only, this command doesn’t destroy the grid itself
So grid and the attached calendar stays in place, that is expected behavior.
i see.
so i use destructor method, but after i use the destructor, still didn’t remove the dhtmlxCalendar from dom.
thanks!
Please, try to get the calendar object:
myGrid.attachEvent(“onDhxCalendarCreated”,function(myCal){
cal=myCal
return true
});
and destruct it together with the grid:
cal.unload();
myGrid.destructor();
i see, thanks!