Categories | Question details Back To List | ||
dhtmlxgrid returns object is not supported when I try use a combo box and when I try to remove a row. The script below is what I'm using. This is with standard version. Both, combo returns object not supported and when I try to remove a row, same error. <script> mygrid=new dhtmlXGridObject('gridbox'); //mygrid=new D('gridbox'); mygrid.setImagePath("../../dhtmlXGrid/dhtmlXGrid/codebase/imgs/"); var flds="Order #,Teacher Name,Student Name,Order Amt,Ord. Date,Status"; mygrid.setHeader(flds); mygrid.setInitWidths("80,150,120,80,80,120"); mygrid.setColAlign("right,left,left,right,center,center"); mygrid.setColTypes("dyn,ed,ed,price,ed,coro"); mygrid.setColumnIds("orderid,teacher,student,totamt,orderdate,status"); mygrid.setSkin("light");mygrid.setColSorting("int,str,str,int,str,str"); var combobox=mygrid.cf(5); combobox.eT("1","Not Complete"); combobox.eT("2","Checked Out"); combobox.eT("3","Payment Received"); mygrid.init(); mygrid.loadXML("ordersx.asp"); </script> <a href= "javascript:void(0)" onclick="mygrid.iu()">Remove Selected Row</a><br>Thanks, Kenan Answer posted by Support on Nov 13, 2008 05:54 >>var combobox=mygrid.cf(5); It seems that you are using compressed js files, used as a demo at dhtmlx.com , please use files from standard package, which allow to work with normal API names. var combobox = mygrid.getCombo(5); http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Selectbox_collections.html#grid_art_selectbox |