Hi
I have a grid where one of the column is of type dhxCalendar.But when i click on the calendar…it is not showing the year.And there is no way for me to change the year.
Thanks
Ashwini
Pleaese be sure that you have same structure of catalogs as in original package, dhtmlxcalendar.css use relative path to bg images, which can be incorrect if you have changed structure of catalogs, and as result some GUI elements can become invisible.
If issue still occurs for you - please provide any kind of sample where problem can be reconstructed.
Problem is that since am not able to view the year am not able to change the year selection.PSA the screen shot of the same.
Problem is that since am not able to view the year am not able to change the year selection.PSA the screen shot of the same.
Unfortunately issue still can’t be reconstructed locally, please provide snippet of used js code.
Also, please be sure , that if you are using setYearsRange - it is used with correct years range.
This is the code snippet:
mygrid = new dhtmlXGridObject(‘gridbox’);
cellgrid = new dhtmlXGridCellObject();
mygrid.setImagePath("<%=appName%>/scripts/dhtmlx/dhtmlxGrid/codebase/imgs/");
mygrid.setHeader(",Week Ending,Totals,<%=sdf.format(sdf1.parse(((Integer)vDateSkey.get(0)).toString()))%>,<%=sdf.format(sdf1.parse(((Integer)vDateSkey.get(1)).toString()))%>, <%=sdf.format(sdf1.parse(((Integer)vDateSkey.get(2)).toString()))%>,<%=sdf.format(sdf1.parse(((Integer)vDateSkey.get(3)).toString()))%>,<%=sdf.format(sdf1.parse(((Integer)vDateSkey.get(4)).toString()))%>,<%=sdf.format(sdf1.parse(((Integer)vDateSkey.get(5)).toString()))%>,<%=sdf.format(sdf1.parse(((Integer)vDateSkey.get(6)).toString()))%>,");
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("<%=calDateFormat%>");
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”);
Am not using the setYearsRange anywhere.Is it necessary to use that?
Same code works correctly locally - working sample sent by email
works correctly in the sense…does it show the year drop down?
Yes, it shows calendar and it is changed to correct dropdown on dblclick.
Maybe your page has some global css which affects calendar’s behavior.
Can you please throw light on which css might affect this? Am not able to figure out.
Thanks
Ashwini
Its hard to say, if it possible to isolate problem - please provide a sample where issue can be reconstructe or link to the demo page ( you can send such info directly to support@dhtmlx.com )
The grid selector use DIV,TEXTAREA,SELECT tags, if you are using css which applies sizes or positions for all such tags it may affect functionality of dhtmlxCalendar as well.
PFA the css files that have been used and the code snippet.Hope this will be of some help.
dhtmlx.rar (14.1 KB)
Even with provided styles - sample works correctly ( sent by email )
It works perfectly in firefox but not in IE.
JS errors which occurs in sample caused by not processed <% tags in code of snippet, after correcting that issue - sample works in IE as well. ( updated sample sent by email )
There was one small issue detected in IE ( not related to original issue ) - you can try to use attached css file ( taken from latest build ) instead of exisitng one.
dhtmlxcalendar.zip (4.34 KB)
Is problem occurs only in your original code, or in sample based on your code snippet ( was sent by email ) as well?