:: Home >>

row position

Sets or retrieves the display position of the grid row.

The display position of the grid row is not necessarily the same as the row index in the datasource. It is possible to show only some of the datasource rows (filter) and show them in the different order (sort). The array of the row indices defines which datasource rows correspond to each visible row of the grid and the row position property returns zero-based display position (given the row datasource index).

Syntax

var value = obj.getRowPosition(); 
obj.setRowPosition(value);        

obj.onRowPositionChanging = function(value){...}; 
obj.onRowPositionChanged = function(value){...}; 
obj.onRowPositionError = function(value){...}; 

Defined in

row model

Examples

obj.setSelectorText(function(r){return this.getRowPosition(r)});

See also

Row model: count, indices, offset, selected, state, height

Comments

No comments yet.
Comments will appear on this page and in the main forum.

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5