:: Documentation >>

column position

Sets or retrieves the display position of the grid column.

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

Syntax

var value = obj.getColumnPosition(); 
obj.setColumnPosition(value);        

obj.onColumnPositionChanging = function(value){...}; 
obj.onColumnPositionChanged = function(value){...}; 
obj.onColumnPositionError = function(value){...}; 

Defined in

column model

Examples

var pos = obj.getColumnPosition(0); // display position of the column-0 (zero based)

See also

Row position
Column properties: count, indices, width

Comments

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