Indicator
The indicator is a vertical area located on the leftmost side of the grid and can be used to display row numbers of data.
How to set up indicators
To change the indicator setting, use setRowIndicator(). To check the currently set state, use getRowIndicator().
Specifies whether to display the indicator on the screen
visible
: Specifies whether the indicator area is displayed on the screen.
gridView.setRowIndicator({
visible: false
});
gridView.setRowIndicator({
visible: true
});
How to change the display value of an indicator (displayValue)
none
: Do not display a value.index
: Displays in order starting from 1. (Regardless of sorting, starting from number 1)row
: Displays the unique number of the row. (Display mixed according to sort)reverse
: Displays values in reverse order.
gridView.setRowIndicator({
displayValue: "none"
});
gridView.setRowIndicator({
displayValue: "index"
});
gridView.setRowIndicator({
displayValue: "row"
});
gridView.setRowIndicator({
displayValue: "row"
});
gridView.setRowIndicator({
displayValue: "reverse"
});
Zero Base
By default, the values displayed in the indicator start from 1. If you want this value to start from 0, set the zeroBase
property to True.
zeroBase
: If true, the indicator value starts from 0.
gridView.setRowIndicator({
zeroBase: true
});
gridView.setRowIndicator({
zeroBase: false
});
Head/Foot
You can display text in the head and foot areas of the indicator.
headText
: Specifies the text to be displayed in the head area.footText
: Specifies the text to be displayed in the foot area.
Show Text
gridView.setRowIndicator({
headText: "head",
footText: "foot"
});