Categories | Question details Back To List | ||
please see my code and tell me how we show date Hello Sir, i am applying this code to show date "23 Dec" but it gives me error "dhtmlx is not defined" mygrid.setDateFormat("%d %b","%Y-%m-%d"); below is my code please reply me wht i do i m using dhtmlxConnector_php to show data not dhtmlxgrid. sample.html <script>window.dhx_globalImgPath = "dhtmlxGrid/codebase/imgs/";</script> <script src='codebase/dhtmlxcombo.js'></script> <script src="codebase/dhtmlxcommon.js"></script> <script src="dhtmlxConnector_php/samples/common/dhtmlx.js" type="text/javascript" charset="utf-8"></script> <script src="dhtmlxConnector_php/codebase/connector.js" type="text/javascript" charset="utf-8"></script> <script src="dhtmlxGrid/codebase/calendar/dhtmlxcalendar.js"></script> <script src="dhtmlxGrid/codebase/calendar/excelll/dhtmlxgrid_excell_dhxcalendar.js"></script> mygrid = new dhtmlXGridObject('gridbox'); mygrid.setImagePath("dhtmlxGrid/codebase/imgs/"); mygrid.clearAll(0); mygrid.setHeader("Check,Add,Del,ShotID,Shotstatus,TaskID,Taskref,Task-Note,Alloted Mandays,UserID,TaskStatus,StartDate,EndDate,Task Priority,Actual Mandays,Supervisor"); mygrid.attachHeader("#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter, ,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter") //mygrid.setInitWidths("100,*") mygrid.setColSorting(" , ,,str,str,str,str,str,str,str,str,date,date,int,int,str") mygrid.setColTypes("ch,link,link,ro,ro,ed,ed,txt,ed,ed,ro,dhxCalendarA,dhxCalendarA,ed,ed,ed"); mygrid.enableSmartRendering(true) mygrid.enableMultiselect(true) mygrid.setDateFormat("%d %b","%Y-%m-%d"); mygrid.init(); mygrid.loadXML("conn.php?projid="+selected_value,calculateFooterValues); var dp = new dataProcessor("conn.php"); dp.init(mygrid); waiting for reply regards Suraj Answer posted by Alex (support) on Dec 24, 2009 00:52 Hello, dhtmlxcommon.js file should be included before all other dhtmlx libraries. |