Categories | Question details Back To List | ||
Link cell - JS array Hi, This is my code: <SCRIPT src="dhtmlxcommon.js"></SCRIPT> <SCRIPT src="dhtmlxgrid.js"></SCRIPT> <SCRIPT src="dhtmlxgrid_srnd.js"></SCRIPT> <SCRIPT src="dhtmlxgrid_filter.js"></SCRIPT> <SCRIPT src="dhtmlxgridcell.js"></SCRIPT> <script src="dhtmlxgrid_excell_link.js"></script> <SCRIPT> mygrid=new D('gridbox'); mygrid.setImagePath("../codebase/imgs/"); mygrid.setHeader("a,b,c"); mygrid.setInitWidths("150,120,80"); mygrid.enableAutoWidth(true); mygrid.setColAlign("left,left,left"); mygrid.setColTypes("link,ed,price"); mygrid.init(); mygrid.setSkin("dhx_skyblue"); mygrid.enableSmartRendering(true); var ar = [ [1^javascript:openTree(),12,13], [2^javascript:openTree(),12,13] ] mygrid.parse(ar,"jsarray"); </SCRIPT> this does not work, i am getting javascript error: ']' expected how can i use a link cell not with xml file (if i cant use it in JS array). thanks Erez Answer posted by dhxSupport on Dec 15, 2009 02:37 Unfortunately we cannot reproduce this issue locally. Please provide us complete example where we can reproduce this issue including files which you are using to initialize grid. |