Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by steensh on Apr 29, 2008 22:16
open dhtmlx forum
dhtmlxGrid - unhighlight row after remove cursor from cell

Hi,

I'm using dhtmlxGrid 1.5 Pro and I enabled LightMouseNavigation. When I hover rows there is a highlighting, how to remove this highlighting after moving cursor outside grid area?

thanks
Answer posted by Support on Apr 30, 2008 01:51
There is no API call , but can be done with next two lines of code

mygrid = new dhtmlXGridObject('gridbox');
....
dhtmlxEvent(mygrid.entBox,"mousemove",function(e){ (e||event).cancelBubble=true;});
dhtmlxEvent(document.body,"mousemove",function(){ mygrid.clearSelection(); });