SMART datagrid v.1 > Examples

Back  Forward

Row Indicator  Example

RowIndicator是由在网格左侧垂直显示行号等内容的单元格所构成的区域。 

Grid - 1
rows

基本上,RowIndicator单元格显示的是。 行号是包含数据行和组页眉等内容的、显示在网格中的行的位置值。 我们可以通过RowIndicator.displayValue属性,设置不同的显示值。 

另外,内部的各指数虽然从0开始,但是我们可以指定想要显示的指数的初始值。所有默认值都是1。 

RowIndex Base: DataIndex Base:

 

RowIndicator的宽度基本由显示在单元格的最长文本宽度、maxWidthminWidth值及样式属性等而自动决定的。 但是,在下列属性中,我们可以区分显示宽度。当width为0时,它将会被自动计算。 如果值小于0,就会忽视maxWidthminWidth。 

minWidth: maxWidth: width:

可以通过styles,指定RowIndicator单元格样式。 

selectabletrue时,如果使用鼠标点击RowIndicator单元格, 就会变更聚焦单元格的位置并选择所点击的行。 而且,点击后,可以通过拖动鼠标而选择多个行。 它总是以行为单位进行选择,并且与GridBase.displayOptionsselectStyle无关。 

 

查看源代码 JSP 

See Also
RowIndicator
RowIndicatorValue
RowIndicator.maxWidth
RowIndicator.minWidth
RowIndicator.width
RowIndicator.selectable
VisualObject.styles
SelectionStyle
GridBase.displayOptions
DisplayOptions.selectStyle
Examples
状态单元格