Categories | Question details Back To List | ||||||||||||||||||||||||||||||||
dhxCalendar not displaying year 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 Answer posted by Support on Dec 22, 2008 03:46 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. Answer posted by Ashwini on Dec 22, 2008 04:05 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. Attachments (1)
Answer posted by Ashwini on Dec 22, 2008 04:26 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. Attachments (1)
Answer posted by Support on Dec 22, 2008 04:28 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. Answer posted by Ashwini on Dec 22, 2008 04:30 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? Answer posted by Support on Dec 22, 2008 04:57 Same code works correctly locally - working sample sent by email Answer posted by Ashwini on Dec 22, 2008 05:00 works correctly in the sense..does it show the year drop down? Answer posted by Support on Dec 22, 2008 06:17 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. Answer posted by Ashwini on Dec 22, 2008 20:33 Can you please throw light on which css might affect this? Am not able to figure out. Thanks Ashwini Answer posted by Support on Dec 23, 2008 02:43 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. Answer posted by Ashwini on Dec 23, 2008 04:28 PFA the css files that have been used and the code snippet.Hope this will be of some help. Attachments (1)
Answer posted by Support on Dec 23, 2008 05:20 Even with provided styles - sample works correctly ( sent by email ) Answer posted by Ashwini on Dec 23, 2008 19:59 It works perfectly in firefox but not in IE. Answer posted by Support on Dec 24, 2008 02:17 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. Attachments (1)
Answer posted by Ashwini on Dec 24, 2008 02:46 Am using IE 6.I tried in IE 7 also.the problem exists.PFA the screenshot. Attachments (1)
Answer posted by Support on Dec 24, 2008 05:45 Is problem occurs only in your original code, or in sample based on your code snippet ( was sent by email ) as well? |