Categories | Question details Back To List | ||
There is no onmouseodown event handlers, and i could really use one All of the row selection events trigger on 'mouseup'. I need an event handler for 'mousedown'. I need this, because i'm trying to simulate windows file drag n' drop, and they highlight the files on mousedown, to make dragging a one-click process. I could probably do this with some non dhtmlxgrid code, but i would rather use your event hooks if possible. Answer posted by Support on Mar 19, 2008 03:23 There is no public event which fires on mousedown ( actually onmousedown used to handle right click for context menu, but it fires event only for right mouse button ) You can attach code directly to HTML container in next way dhtmlxEvent(grid.entBox,"mousedown",function(e){ var el = grid.getFirstParentOfType((e.target||event.srcElement),"TD"); var id = el.parentNode.idd; // now you can execute any code with row ID }); Answer posted by Support on Mar 19, 2008 03:24 >>to make dragging a one-click process Actually built in d-n-d in grid allows to drag row in same way - you can mousedown on not-selected row and drag it |