SMART datagrid v.1 > Examples

Back  Forward

Bar Renderer  Example

BarCellRenderer displays the value of the data cell and the percentage of the minimum and maximum range of the renderer with a rectangular bar starting from origin. If maximum is below minimum, this bar will not be drawn. 

In the example below, BarCellRenderer.origin of "Unit Price" column is "left", and origin of "Quantity" column is "right". The bar is drawn with the background color specified through GridStyles.shapeColor and the border specified through GridStyles.shapeBorder. The width of the bar is drawn through GridStyles.shapeSize

Grid - 1
rows

   

View Source JSP 

See Also
BarCellRenderer
GridStyles
Examples
Shape Cell Renderer
Signal Cell Renderer