Categories | Question details Back To List | ||
TreeGrid Combo Excell xmlcontent Hi there, Having an treegrid which loads from XML mygrid.loadXML("ksflxflat.xml"); With the ksflxflat.xml being: <rows> <row id="0|1160246"> <row id="1|1454"> <row id="2|1461"> <cell image="sort_desc.gif">Data</cell> <cell type="combo" xmlcontent="1" auto="false" cache="true" source="ksdatacatalog.xml">35079</cell> </row> <cell image="leaf.gif">Basedata</cell> <cell type="ro" /> </row> <cell image="folder.gif">Objekt</cell> <cell type="ro" /> </row> </rows> And the ksdatacatalog.xml being <complete> <option value="35079">630</option> <option value="35097">6300</option> </complete> The grid displays the value null for the combo after mygrid.loadXML. If the cell goes into edit mode, the correct catalog is displayed and the correct value is highlighted. Just the inital view of the grid is wrong. Additionally the image of the combobox is missing ( red x placeholder image instead ). Did I miss some includes? Should there be an updatecell call? Please advice. I did include <script src="/dhtmlx/dhtmlxCombo/codebase/dhtmlxcombo.js"></script> <script src="/dhtmlx/dhtmlxCombo/codebase/dhtmlxcommon.js"></script> <script src="/dhtmlx/dhtmlxGrid/codebase/dhtmlxcommon.js"></script> <script src="/dhtmlx/dhtmlxGrid/codebase/dhtmlxgrid.js"></script> <script src="/dhtmlx/dhtmlxGrid/codebase/dhtmlxgridcell.js"></script> <script src="/dhtmlx/dhtmlxGrid/codebase/excells/dhtmlxgrid_excell_combo.js"></script> <script src="/dhtmlx/dhtmlxTreeGrid/codebase/dhtmlxtreegrid.js"></script> best regards, aphily Answer posted by Support on Dec 29, 2008 17:31 >>Additionally the image of the combobox is missing ( red x placeholder image instead ).
Please check if you are using separate path setting for combo ( in latest version it will use same image folder as grid uses - set by grid.setImagePath ) Separate path to imgs folder of combo can be set as window.dhx_globalImgPath="path to folder" >>Did I miss some includes? Should there be an updatecell call? The includes and code looks correct. Which version of dhtmlxtreegrid you are using? Answer posted by aphily on Dec 30, 2008 04:44 ComboImage: I was using mygrid.imgURL = "/dhtmlx/dhtmlxGrid/codebase/imgs/icons_greenfolders/"; Now I added mygrid.setImagePath = "/dhtmlx/dhtmlxGrid/codebase/imgs/"; Which does not change anything. The combo is still looking in >con_greenfolders< for its icon. So i copied then combo icon to that folder and its fine. Initial Combo View in Grid: I am using Build 81107. If I change the grid xml from <cell type="combo" xmlcontent="1" auto="false" cache="true" source="ksdatacatalog.xml">35079</cell> to <cell type="combo" xmlcontent="1" auto="false" cache="true" source="ksdatacatalog.xml" text="doesnotmatterwhatsinhere" >35079</cell> The initial view of the grid is correct.
Best regards aphily Answer posted by Support on Jan 12, 2009 08:28 Dear Aphily, The modified combo excell is sent by email. It should fix the described issues. |