onRowSelect event fires on mouseover instead of click when u


I’ve just found that creating grid from table with dhtmlXGridFromTable the onRowSelect fires on mouseover

(tested on Firefox /Opera)



To reproduce it, it can be tested with the following html:



<table id=“car” style=“width:100%” lightnavigation=“true”

imgpath=“grid/codebase/imgs/” gridHeight=“520px”>



Super

Precio





Aguacate

4.15



test

1.98







What is a reason of using setTimeout function? Without this function “onRowSelect” event works as expected.


Thanks for your reply,


the reason to use setTimeout is that I wanted to differentiate click from doubleClick and read this on another topic in the knowledge base.

the onRowSelect fires on mouseover
Caused because of
<table id=“car” style=“width:100%” lightnavigation=“true” imgpath=“grid/codebase/imgs/” gridHeight=“520px”>
If you need just a highlight row under cursor, remove this attribute and use
mygrid.enableRowsHover(true,“some_css_class”);

Thanks very much for your support!