:: Documentation >>

Javascript array

In this example the grid data is stored in a two-dimensional javascript array.

var myCells = [
 ["MSFT","Microsoft Corporation", "314,571.156", "32,187.000"],
 ["ORCL", "Oracle Corporation", "62,615.266", "9,519.000"],
 ["SAP", "SAP AG (ADR)", "40,986.328", "8,296.420"],
 ["CA", "Computer Associates Inter", "15,606.335", "3,164.000"],
 ["ERTS", "Electronic Arts Inc.", "14,490.895", "2,503.727"]
];

obj.setCellText(myCells);

See also

Complete examples with server-side code: ASP/ADODB, PHP/MySQL

Comments

Refreshing the grid with AJAX Boris (3)
Is posible load a new array in the grid? Benja (5)

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