SMART datagrid v.1 > Examples

Back  Forward

Icon Cell Renderer  Example

IconCellRenderer is a cell renderer which displays the image icon together with the text. The icon is imported from the image list specified through DataColumn.imageList of the column. In the list, the image index which will be displayed in the data cell is specified through GridStyles.iconIndex

You can use GridStyles.iconLocation property to place the icon and text in various ways. 

Grid - 1
rows

Change iconAlpha style of "Country" column. 

View Source JSP 

See Also
IconLocation
GridStyles.iconLocation
GridStyles.iconIndex
ValueColumn.renderer
Examples
Image Cell Renderer
Shape Cell Renderer
Signal Cell Renderer