Categories | Question details Back To List | ||
Blank space, left and right arrows keys do not work on edition Blank space, left and right arrows keys do not work on edition My code: mygrid = new dhtmlXGridObject('gridbox'); mygrid.setImagePath("dhtmlXGrid/imgs/"); mygrid.setHeader("ID,Title,Category,Cost price,Total price,Special,Special price,Featured,Public"); mygrid.setColumnIds("ProdID,Title,CatID,CostPrice,TotalPrice,isSpecial,SpecialPrice,isFeatured,isPublic"); mygrid.setInitWidths("65,*,200,75,75,55,100,55,55") mygrid.setColAlign("center,left,left,left,left,center,left,center,center") mygrid.setColTypes("ro,edtxt,coro,ed,ed,ch,ed,ch,ch"); mygrid.enableTooltips("false,false,false,false,false,false,false,false,false") mygrid.enableResizing("false,false,false,false,false,false,false,false,false") mygrid.enableAutoHeight(true) mygrid.enableEditEvents(true, false, false) mygrid.setSkin("xp") mygrid.setOnEditCellHandler(OnEditCell) mygrid.setOnKeyPressed(OnKeyPress) mygrid.init(); mygrid.loadXML("products_qu.php?"+location.search+"&action=list"); var rowUpdater = new dtmlXMLLoaderObject(null,null); <rows> <row id="307"> <cell>307</cell> <cell><![CDATA[ Adult Batman™ Blister Set 5233]]></cell> <cell>10</cell> <cell>9.00</cell> <cell>14.99</cell> <cell>1</cell> <cell>0.00</cell> <cell>1</cell> <cell>1</cell> </row> </rows> //---------------------------------------------------------------------------- function OnKeyPress(code) { //catch Esc key if ((mygrid.editor) && (code==27)) { isCanceled=true; mygrid.editStop(); currentCell.setValue(currentCellOldValue); return false; } return true; } Answer posted on Oct 29, 2007 09:28 Problem confirmed and fixed. Please contact directly at support@dhtmlx.com and provide your ref. number - I will send you an updated file. |