:: Documentation >>

JavaScript array

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

var myData = [
 ["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"]
];

Instead of providing a static text to the grid - you should supply the function, which just returns an array element for a given row and column indices.

obj.setDataProperty("text", function(i,j){return myData[i][j]});

Comments

buid a Dynamic and Editable Table which Show the Existing Record in the Datebase prabakar (23)
search engine Cosmin (0)
Storing a row's key value Arthur (3)
sorting tsukulu (2)
Urgent Please Help me .. imthiyaz (5)
how to show complete table in jsp atul (0)
how to show the complete table in jsp atul (0)
i need raw can be moveup and move down with js sandip thakkar (0)
How to put a vaule for particular rows & columns. - pl explain . Jegadeesan (2)
asign background image to I-frame (1)
Adding dynamic data Matutek (3)
How to put a particular value in particular rows & columns in grid. Jegadeesan (0)

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