Search code examples
javagwtsmartgwtlistgrid

Apply background color of specific cells in smartgwt ListGrid


I started developing with smartgwt few weeks ago and I am having a problem I want to insert background color in specific cells of a ListGrid. The problem is that i have not access in ListGrid Elements with their indexes (for example grid(i,j)) Any idea?? Thank you


Solution

  • There are 2 ways i can think of to achieve this:

    1)Hilites.Good for coloring rows based on criterion. http://www.smartclient.com/smartgwt/showcase/#grid_hiliting_formula

    2)Create custom cell canvases by overriding createRecordComponent() , updateRecordComponent() and showRecordComponent()