:: Home >>

column indices

Sets or retrieves the array of the column indices (in display order).

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.

Syntax

var value = obj.getColumnIndices(); 
obj.setColumnIndices(value);        

obj.onColumnIndicesChanging = function(value){...}; 
obj.onColumnIndicesChanged = function(value){...}; 
obj.onColumnIndicesError = function(value){...}; 

Defined in

column model

Examples

var myText = [
    ["Some text", "123", "456.00"],
    ["cell", "456", "789.99"]
];

obj.setColumnIndices([2, 0]); // show columns 2 and 0, hide column 1

See also

Row indices
Column properties: count, position, width

Comments

1 Jun 06
Hiding columns Kwooda (16)
16 Feb 06
Adding new Column for the existing Grid Rohith (0)
13 Feb 06
How to remove columns on runtime? Lucas Moretto (1)

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