1 Reply Latest reply on Jul 1, 2011 1:46 AM by nijinsky

    frozenColumns attribute of rich:extendedDataTable not working onrowmouseover(onrowmouseout)?

    nijinsky

      Hello.

       

      I do not operate as onrowmouseover and onrowmouseout thought when frozenColumns attribute of rich:extendedDataTable is used.

      The style of one line will be able to be changed?

       

      --------------------------------------------------------------------------------------------------

      <rich:extendedDataTable

          id="table"

          value="#{tableBean.tableForm.listData}"

          var="row"

          onrowmouseover="jQuery(this).addClass('active-row');"

          onrowmouseout="jQuery(this).removeClass('active-row');"

          rowClasses="odd-row, even-row"

          frozenColumns="3"

          selectionMode="single">

       

       

      </rich:extendedDataTable>

       

      --------------------------------------------------------------------------------------------------

        • 1. Re: frozenColumns attribute of rich:extendedDataTable not working onrowmouseover(onrowmouseout)?
          nijinsky

          it self-solved it though it was thought that there was a good method.

           

           

          ------------------------------------------------------

          function eventOnRowMouseOver(obj){

           

          var lastId = obj.id.substr(obj.id.lastIndexOf(':'), obj.length);

          var otherId;

           

          if(lastId==':f'){ otherId = ':n';}else if( lastId==':n'){ otherId = ':f';}

           

          var element = document.getElementById(obj.id.substr(0, obj.id.lastIndexOf(':')) + otherId);

           

          jQuery(obj).addClass('active-row');

          jQuery(element).addClass('active-row');

          }

          ------------------------------------------------------------------------