views:

133

answers:

1

Hello,
How to make the data table rows change color as hover over it. The YUI example is here link text

I tried something like

    <script>
  GRAILSUI.myDataTable.subscribe("rowMouseoverEvent", GRAILSUI.myDataTable.onEventHighlightRow);
  GRAILSUI.myDataTable.subscribe("rowMouseoutEvent", GRAILSUI.myDataTable.onEventUnhighlightRow);
  GRAILSUI.myDataTable.subscribe("rowClickEvent", GRAILSUI.myDataTable.onEventSelectRow);
</script>

thanks,

A: 

ok.. got it working.. for anyone interested, you need to wrap the above statements in

YAHOO.util.Event.onDOMReady(function () { });

so that the table is initialized.

bsreekanth