Categories | Question details Back To List | ||
enable single click Does anyone know the syntax to enable single click. At the moment users had to double click to make edit to fields i would like it to just be a single plick if possible. i am aware of enableEditEvents(click, dblclick, f2Key), but not sure where to put this? i was thinking it would go in the below script. Thanks <script> mygrid1 = new dhtmlXGridObject('gridboxcl'); mygrid1.setImagePath('./dhtmlxGrid/codebase/imgs/'); mygrid1.setHeader("Property,Status,Picture,Area,New Home,Bedrooms,Price (£),Date Saved"); mygrid1.setInitWidths("80,80,100,100,90,110,100,100"); mygrid1.setColTypes("ro,ro,ro,ro,ro,ro,ro,ro"); mygrid1.setColAlign("center,center,center,center,center,center,center,center"); mygrid1.setSkin("modern"); //mygrid1.attachHeader("#connector_text_filter,#connector_text_filter") mygrid1.setColSorting("connector,connector,connector,connector,connector,connector,connector,date"); mygrid1.init(); mygrid1.enablePaging(true,6,10,"pagingAreacl",true); mygrid1.setPagingSkin("bricks"); mygrid1.loadXML("thumbnail.html"); var dp = new dataProcessor("thumbnail.html"); dp.init(mygrid1); </script> Answer posted by dhxSupport on Jul 29, 2009 06:54 You should put enableEditEvents() method before mygrid1.init();: mygrid1.enableEditEvents(true,false,true); mygrid1.init(); |