SMART datagrid v.1 > Examples

Back  Forward

Row Indicator  Example

RowIndicator is the area which consists of the cells displaying the row index vertically on the left side of the grid. 

Grid - 1
rows

The cells of RowIndicator basically display Row Index. The row index is the location value of the rows displayed in the grid, including Data Row and Group Header. You can specify the display values differently through RowIndicator.displayValue property. 

In addition, though each index starts from 0 internally, you can specify the start value of the displaying index. The default value is all 1

RowIndex Base: DataIndex Base:

 

The width of RowIndicator is determined automatically by the width of the maximum length character, maxWidth and minWidth values, and the style property. However, you can set the display width differently through the properties below. It will be automatically calculated if width is 0. If the value is less than 0, maxWidth or minWidth will be ignored. 

minWidth: maxWidth: width:

The style of RowIndicator cells is specified through styles

If click RowIndicator cells when selectable is true, the location of Focused Cell will be changed and the clicked row will be selected. Also, you can select several rows by dragging the mouse after the click. It is always selected on a row basis regardless of selectStyle of GridBase.displayOptions

 

View Source JSP 

See Also
RowIndicator
RowIndicatorValue
RowIndicator.maxWidth
RowIndicator.minWidth
RowIndicator.width
RowIndicator.selectable
VisualObject.styles
SelectionStyle
GridBase.displayOptions
DisplayOptions.selectStyle
Examples
State Cells