3.2.0

onMouseOver row highlight - bug in V2 (IE V6) ?

Hi, I've tried implementing row mouseover highlighting using the code below...as per the example on your site. However, when I mouse over a row I get a javascript error (Line 1, Char 1, Error: Object expected)

Has anyone else had a problem with this in version 2 of the grid? I haven't tried it in version 1....am new to this widget.

Cheers,
Brian

*************** code **************
<style>
.active-row-highlight {border-bottom: 1px solid red}
.active-row-highlight .active-row-cell {border-bottom: 1px solid red}
</style>

var row = grid.getRowTemplate();
row.setEvent("onmouseover", "mouseover(this, 'active-row-highlight')");
row.setEvent("onmouseout", "mouseout(this, 'active-row-highlight')");

*************** code **************
Brian
October 14,
Brian,

row highlight on mouseover is already built into v2. You can simply add:

.aw-mouseover-row {background: #ccc;}

There are more examples in /examples/quickref/grid.htm (line 43-46)
Alex (ActiveWidgets)
October 14,
Thanks Alex.
Brian
October 17,

This topic is archived.

See also:


Back to support forum