Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
customizing cells in GridView
posted

Hi, i need to customize certain cells in my gridview, for example if a cell value is greater than 1000, i want to display the cell background or the cell text in Red, how can i do that???

 Thanks.

Parents
No Data
Reply
  • 85
    posted

    hey, don't know if this problem still exists ...

    the only thing I can think of is having at least 2 style definitions for a cell, then sth like this should be possible

     

    <ig:column>

        <h:outputText value="#{someValue}" styleClass="highlightStyle" rendered="#{someValue &gt; 1000}">

        <h:outputText value="#{someValue}" styleClass="defaultStyle" rendered="#{someValue &lt; 1000}"> 

    </ig:column> 

    I am not sure if you need to work with &lt; &gt; or if you can work with < and > , but in theory this should work, we only used it with !empty so far, so it would be interesting how it works.

     

    regards

    /anja 

Children
No Data