Categories | Question details Back To List | ||
Re:How to get the DHTMLXGRID object after it loads
ok. but my grid is being created in a dhtmlx window as such: var dhxWins= new dhtmlXWindows(); var win = dhxWins.createWindow(id, 30, 30, 300, 300); var mygrid3 = win.attachGrid(); mygrid3.selMultiRows = true; mygrid3.setImagePath("../../../../dhtmlxGrid/codebase/imgs/"); var flds = "Sales,Book Title,Author,Price"; flds += ",In Store,Shipping,Bestseller,Date of Publication"; mygrid3.setHeader(flds);//,"#cspan","C"); mygrid3.setInitWidthsP("12.5,12.5,12.5,12.5,12.5,12.5,12.5,12.5") mygrid3.setColAlign("right,left,left,right,center,left,center,center") mygrid3.setColTypes("dyn,ed,ro,price,ch,coro,ra,ro"); mygrid3.setColSorting(",str,str,int,str,str,str,date") mygrid3.setColumnColor("white,#d5f1ff,#d5f1ff") mygrid3.setMultiLine(false); mygrid3.enableDragAndDrop(true); mygrid3.enableColumnMove(true); mygrid3.setSkin("modern"); mygrid3.init(); mygrid3.loadXML("grid.xml"); so where do i specify the name of the grid here...... Answer posted by dhxSupport on May 27, 2009 04:42 mygrid3 is a name of the grid (variable which refer to the dhtmlxGrid object). |