Categories | Question details Back To List | ||
dhtmlxgrid checkbox and date column Hello, I have a trouble with the eXcell format "ch" and "dhxCalendar" its not works, the columns values appears on blank. This is my xml configuration and data: ---------------------------------------------------------------DATA.XML <?xml version="1.0" encoding="UTF-8"?> <rows> <head> <beforeInit> <call command="setSkin"> <param>light</param> </call> </beforeInit> <afterInit> </afterInit> <column width="80" type="ed" align="right" sort="str">Sales</column> <column width="80" type="co" align="left" sort="str">Shipping <option value="1">10</option> <option value="2">20</option> <option value="3">30</option> </column> <column width="100" type="ed" align="left" sort="str">Author</column> <column width="100" type="ch" align="left" sort="str">Check</column> <column width="100" type="dhtmlxcalendar" align="left" sort="int">check2</column> <settings> </settings> </head> <row id="a"> <cell>Model 1</cell> <cell>100</cell> <cell>399</cell> <cell>0</cell> <cell>0</cell> </row> <row id="b"> <cell>Model 2</cell> <cell>50</cell> <cell>649</cell> <cell>0</cell> <cell>0</cell> </row> <row id="c"> <cell>MOdel 3</cell> <cell>70</cell> <cell>877</cell> <cell>0</cell> <cell>0</cell> </row> </rows> AND MY JSP IS: <html> <head> <link rel="STYLESHEET" type="text/css" href="dhtmlxGrid/dhtmlxGrid/codebase/dhtmlxgrid.css"> <script src="dhtmlxGrid/dhtmlxGrid/codebase/dhtmlxcommon.js"></script> <script src="dhtmlxGrid/dhtmlxGrid/codebase/dhtmlxgrid.js"></script> <script src="dhtmlxGrid/dhtmlxGrid/codebase/dhtmlxgridcell.js"></script> <script src="dhtmlxGrid/dhtmlxGrid/codebase/ext/dhtmlxgrid_filter.js"></script> <script src="dhtmlxGrid/dhtmlxGrid/codebase/ext/dhtmlxgrid_nxml.js"></script> <script src="dhtmlxGrid/dhtmlxGrid/codebase/ext/dhtmlxgrid_pgn.js"></script> <script src="dhtmlxGrid/dhtmlxGrid/codebase/ext/dhtmlxgrid_srnd.js"></script> <script src="dhtmlxCombo/dhtmlxCombo/codebase/dhtmlxcombo.js"></script> <script src="dhtmlxGrid/dhtmlxCalendar/codebase/dhtmlxcalendar.js"></script> <script src="dhtmlxGrid/dhtmlxGrid/excells/dhtmlxgrid_excell_dhxcalendar.js"></script> <link rel="STYLESHEET" type="text/css" href="dhtmlxGrid/dhtmlxCalendar/codebase/dhtmlxcalendar.css"> <link rel="STYLESHEET" type="text/css" href="dhtmlxCombo/dhtmlxCombo/codebase/dhtmlxcombo.css"> function doInitGrid(){ mygrid = new dhtmlXGridObject('mygrid_container'); mygrid.setImagePath("dhtmlxGrid/codebase/imgs/"); mygrid.loadXML("datos/datos.xml"); mygrid.attachEvent("onEditCell",doOnCellEdit); mygrid.attachHeader("#text_filter,#select_filter"); } PLEASE HELP ME !!!!!!!!!!!!! Answer posted by Alex (support) on Jun 19, 2009 05:30 Hello, in case of dhxCalendar - there is the issue in the xml. Please, use <column width="100" type="dhxCalendar" align="left" sort="int">check2</column> instead of <column width="100" type="dhtmlxcalendar" align="left" sort="int">check2</column> The "ch" can't cause any problems, except one thing... Please, check the checkbox images are in the dhtmlxGrid/codebase/imgs/ folder. There must be item_chk0.gif and item_chk1.gif images Answer posted on Jun 19, 2009 06:40 Thanks !!!!!!!!!!!!!! problem solved. I review all urls of files and found many errors. |