Categories | Question details Back To List | ||
Initialization Grid from table html Hi, i using the below code for initialization grid from table html, but i want to show a dhtmlXCombo in the title of columns, but don show fine, the rest code work fine.. if i donīt show the dhtmlXCombo the grid is loaded correctly... thanks for your helps.. <link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxgrid.css"> <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxgrid_dhx_skyblue.css"> <script src="../../codebase/dhtmlxcommon.js"></script> <script src="../../codebase/dhtmlxgrid.js"></script> <script src="../../codebase/dhtmlxgridcell.js"></script> <script src="../../codebase/ext/dhtmlxgrid_start.js"></script> <script>window.dhx_globalImgPath = "../../codebase/imgs/";</script> <link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxcombo.css"> <script src="../../codebase/dhtmlxcombo.js"></script> <script> dhtmlx.skin = "dhx_skyblue"; </script> <table class="dhtmlxGrid" gridHeight="auto" name="grid2" style="width:400px" lightnavigation="true"> <tr> <td type="ro">Column 2<div id="combo_zone2" style="width:200px; height:30px;"></div> <script> var z = new dhtmlXCombo("combo_zone2", "alfa2", 200); z.readonly(1); z.loadXML("../../codebase/data.xml"); </script></td> <td>Column 2</td> </tr> <tr> <td>value 11</td> <td>value 12</td> </tr> <tr> <td>value 21</td> <td>value 22</td> </tr> </table> Jorge Arzuaga Answer posted on Sep 18, 2009 01:00 If you want to use combo at the one of grid cell's better to use "combo" eXcell type. Please find example here http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/13_interaction_other_components/01_pro_combo.html In case of initialization grid from html you wil need to do: <td type="combo"> Please find tutorial here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:how_to_use_new_excell_combo Answer posted on Sep 18, 2009 06:30 But it´s possible only write my input without using the eXcell type? |