dhxCalendar shows Nan when the year is changed in the year d

Hi



Am using a grid with one of the columns as dhxCalendar.

When i change the year from the year drop down it displays all dates as Nan.

Am using v.1.1 build 81107.



Thanks


Hi,


Could you please provide any sample where issue can be reproduced ?

sample code
mygrid = new dhtmlXGridObject(‘gridbox’);
            cellgrid = new dhtmlXGridCellObject();
            mygrid.setImagePath(“<%=appName%>/tpc/dhtmlx/dhtmlxGrid/codebase/imgs/”);
            mygrid.setHeader(“,Week Ending,Totals,M,T,W,Th,F,S,S,”);
            mygrid.attachHeader(“#rspan,#rspan,#rspan,<%=gridHeader%>”);   
            mygrid.setInitWidthsP(“10,10,10,10,10,10,10,10,10,10,0,0”);
            mygrid.setColAlign(“center,right,right,right,right,right,right,right,right,right,right,right”);
            mygrid.setColSorting(“str,str,str,str,str,str,str,str,str,str,str,str”);
            mygrid.setColTypes(“ron,dhxCalendar,edn,coro,coro,coro,coro,coro,coro,coro,ro,ro”);
            mygrid.enableTooltips(‘false,false,false,false,false,false,false,false,false,false,false,false’);
            mygrid.enableAutoHeigth(true);
            mygrid.setDateFormat(“%m/%d/%y”);
            mygrid.setColSorting(“na,na,na,na,na,na,na,na,na,na”);
            mygrid.enableResizing(“false,false,false,false,false,false,false,false,false,false”);
            mygrid.attachEvent(“onEditCell”,editCell);
            mygrid.attachEvent(“onMouseOver”,showToolTip);
            mygrid.init();
            mygrid.setSkin(“xp”);
                   
            mygrid.addRow(1,[‘’,‘’,‘’,‘’,‘’,‘’,‘’,‘’,‘’,‘’,‘’,‘’]);
            mygrid.addRow(2,[‘’,‘’,‘’,‘’,‘’,‘’,‘’,‘’,‘’,‘’,‘’,‘’]);

dhtmlxcalendar.js.zip (8.85 KB)

Unfortunately the issue still can’t be reconstructed. In which browser it occurs for you?
The sample which uses the same code and same dhtmlxcalendar.js works correctly ( working sample sent by email )

While it works with original 81107 codebase, you can try to update dhtmlxgrid_excell_dhxcalendar.js with attached one.

dhtmlxcalendar.js.zip (8.85 KB)