How to get the edge of a datagrid from the primefaces?

2

How do I get the edge of a datagrid from the primefaces ???

The part of the code that uses the datagrid follows:

<p:dataGrid columns="3" value="#{projetistaBean.listaDeProjetistas}" var="projetista" styleClass="ui-datagrid"  >

and the part of the code that I customized the datagrid:

.ui-datagrid{
    border: none;
}

and nothing out of border

    
asked by anonymous 05.08.2014 / 16:09

3 answers

1

Try removing the border from ui-datagrid and ui-datagrid-content

<style>
    .ui-datagrid{border: none !important;}  
    .ui-datagrid-content {border: none !important;}  
</style>
    
05.08.2014 / 16:59
0

Modifying the .ui-datagrid class you end up changing for everyone, but if you want to change only from a specific single, do so:

<style>
    .noGridBorder tr, .noGridBorder td{border: none!important}
</style>

<p:panelGrid styleClass="noGridBorder">
</p:panelGrid>
    
06.08.2014 / 22:36
0

Incredible that I never needed to do this, but 2 hours after seeing this question arose the need, :).

I solved the problem as follows:

 <p:dataGrid ... styleClass="teste">
    ...
 </p:dataGrid>

In the file with the styles:

.teste .ui-widget-content
{
    border: none !important;
}

I hope it helps.

    
10.09.2014 / 15:04