Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ashwini on Feb 17, 2009 08:58
open dhtmlx forum
dhxCalendar shows Nan when the year is changed in the year drop down

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
Answer posted by Alex (support) on Feb 17, 2009 09:32

Hi,

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

Answer posted by Ashwini on Feb 17, 2009 20:28
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,['','','','','','','','','','','','']);
Attachments (1)
Answer posted by Support on Feb 18, 2009 05:41
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. 
Attachments (1)