This content has been marked as final.
Show 6 replies
-
1. Re: dataGrid - how to hide blank cells?
nbelaevski Feb 20, 2009 6:57 PM (in response to cocolino)Hello,
<rich:dataGrid var="item" columns="#{fn:length(forum5Bean.data) ge 2 ? 2 : fn:length(forum5Bean.data)}" value="#{forum5Bean.data}"> #{item} </rich:dataGrid>
where 2 is the desired column count. -
2. Re: dataGrid - how to hide blank cells?
cocolino Feb 21, 2009 3:38 AM (in response to cocolino)Thank you very much!
-
3. Re: dataGrid - how to hide blank cells?
strannik Jan 15, 2010 7:19 PM (in response to cocolino)What if there are 3 items on the first page and only two items on the second page? The code above will not work because it doesn't consider current page index. -
4. Re: dataGrid - how to hide blank cells?
nbelaevski Jan 17, 2010 9:49 AM (in response to strannik)Hi,
You mean "row" by "page" I guess. Borders for empty cells can be hidden using CSS then.
-
5. Re: dataGrid - how to hide blank cells?
strannik Jan 17, 2010 2:36 PM (in response to nbelaevski)Do you mean overwrite css like that?
.extdt-empty-cell {
width: 0px;
margin: 0px;
}th.extdt-empty-cell {
width: 7px;
}I tried that but nothing has changed. Still borders around empty cells.
-
6. Re: dataGrid - how to hide blank cells?
ilya_shaikovsky Jan 18, 2010 6:08 AM (in response to strannik)1) you tried classes not for dataGrid but for extendedDataTable.
2) check please http://livedemo.exadel.com/richfaces-demo/richfaces/dataGrid.jsf - click last page control at datascroller. I can't see empty cells.