1 Reply Latest reply on Sep 28, 2011 2:26 PM by Ron Martinez

    remove border in rich datagrid in rich faces 4.0

    Savanna Johansen Newbie

      Hi!

       

      The rowClasses and columnClasses attributes of rich dataGrid are now unavailable in rich faces 4.0. I want to style columns like set border to 0, add padding to cells, etc. Does anybody know how to do this?

       

      Thanks!

        • 1. Re: remove border in rich datagrid in rich faces 4.0
          Ron Martinez Newbie

          I managed to remove borders by doing the following.

           

          xhtml:

           

          <rich:dataGrid ... styleClass="plainTable">

             ...

          </rich:dataGrid>

           

          css (substitute whatever css you need):

           

          .plainTable {

              border-color: transparent !important;

          }

           

          .plainTable .rf-dg-c {

              border-color: transparent !important;

          }

           

          I also use css similar to the above to remove borders from datatable's.

          1 of 1 people found this helpful