Categories | Question details Back To List | ||
Incorrect cell type: link In this code snippet: <div id="mygrid_container" style="width:500px;height:150px;"></div> <xml id="isl_xml" style="display:none;"> <rows> <row id="40"> <cell>TOYOTA^javascript:submit_mode_data('Edit', '40');^_self</cell> <cell>0</cell> <cell>Delete^javascript:confirm_mode_data('Are you sure you want to delete this Manufacturer?', 'Delete', '40');^_self</cell> </row> <row id="41"> <cell>FORD^javascript:submit_mode_data('Edit', '41');^_self</cell> <cell>0</cell> <cell>Delete^javascript:confirm_mode_data('Are you sure you want to delete this Manufacturer?', 'Delete', '41');^_self</cell> </row> <row id="42"> <cell>JEEP^javascript:submit_mode_data('Edit', '42');^_self</cell> <cell>0</cell> <cell>Delete^javascript:confirm_mode_data('Are you sure you want to delete this Manufacturer?', 'Delete', '42');^_self</cell> </row> </rows> </xml> <script> var mygrid; mygrid = new dhtmlXGridObject('mygrid_container'); mygrid.setImagePath("../dhtmlx/dhtmlxGrid/codebase/imgs/"); mygrid.setHeader("Manufacturer,Prod<br>Cnt,Delete", "", ["text-align:left;","text-align:center;","text-align:center;"]); mygrid.setInitWidths("*,75,75"); mygrid.setColAlign("left,center,center"); mygrid.setColTypes("link,ro,link"); mygrid.setSkin("light"); mygrid.init(); mygrid.parse(document.getElementById('isl_xml')) </script> I am getting the error: Error Type: Configuration Description: Incorrect cell type: link This error pops up twice (one for each column). What is wrong with this code? Is "link" a Pro-version type? I thought I checked all of this. Thanks in advance for the help! Answer posted by Support on Nov 14, 2008 02:07 You need to include dhtmlxgrid/codebase/excells/dhtmlxgrid_excell_link.js Answer posted by JD Ready on Nov 14, 2008 04:51 Excellent! That did the trick! Thank you. |