1 Reply Latest reply on Jun 13, 2011 10:21 AM by ilya_shaikovsky

    mouseover say row 2, in datatable A, corresponding row 2 in datatable B also being mouseover

    simonc2009

      Hi all,

       

      I have a java program written in Richfaces 3.3.2 with 2 datatables, say datatable A and datatable B,

      and I would like to ask how to implement below effect that:

       

      mouseover say row 2, in datatable A, corresponding row 2 in datatable B also being mouseover.

      Similar, when mouseout in row 2 in datatable A,  corresponding row 2 in datatable B will also being mouseover.

       

      I see the code, which do the effect of mouseover and mouseout on 1 datatable, and "this" seems

      referring "the" row from "the" datatable which mouse is peforming the above effect.

       

      So, how to sync the mouse effect when same row no, which comes are from 2 datatables?

       

      FYI, I separate a record in 2 datatables, so as to freeze column in datatable A, and horizontal scroll columns

      for datatable B, which this effect is required by user and I CANNOT upgrade the richfaces framework to 4.0

       

      Please help and thanks

      ==============================================================

      <rich:dataTable value="#{glSectCodes}"

       

                     rowClasses="odd-row, even-row"    

                     onRowMouseOver="this.style.backgroundColor='#E6E8FA'" 

                     onRowMouseOut="this.style.backgroundColor='#{rowKeyVar}'"

      >

      ..

       

      </rich:dataTable>

       

      Thanks