6 Replies Latest reply on Mar 8, 2012 3:24 AM by sarocks

    extendedDataTable rowClasses attribute not working with lazyloading of rows

    sarocks

      Hi,

       

      I am using ExtendedDataModel for extendedDataTable for lazyloading(dynamic loading) of rows as we scroll in the table.

      I have to put 2 different background colurs for odd and even rows in the table.

       

      It's working in the first time loading, but as we scroll in the table, later all rows of same color.

       

      Code snippet: (I am using Richfaces4, JSF2)

       

      <rich:extendedDataTable id="auction" value="#{auctionDataModel}" var="item"
                  clientRows="30" style="height:300px; width:400px;" selectionMode="single"
                  rowClasses="odd,even">
           ....
      

       

      css file contains:

      tr.odd {
         background-color: #F3F3F3;
      }
      tr.even {
         background-color: #FFFFFF;
      }
      

       

      Here are the screenshot before and after dynamic rows loading:

      beforelazyload.PNG

       

      afterlazyload.PNG

       

      Any clue!

       

      Thanks,

      Saroj