Themes Leave a comment
x
 
1
jui.ready([ "grid.table" ], function(table) {
2
    table_13 = table("#table_13", {
3
        fields: [ null, "name", "age", "location" ],
4
        data: [
5
            { name: "Hong", age: "20", location: "Ilsan" },
6
            { name: "Jung", age: "30", location: "Seoul" },
7
            { name: "Park", age: "15", location: "Yeosu" }
8
        ],
9
        scroll: true,
10
        resize: true
11
    });
12
13
    table_13_submit = function() {
14
        var rows = [],
15
            nStart = new Date().getTime();
16
17
        for(var i = 0; i < 100; i++) {
18
            rows.push({ name: "Alvin" + i, age: i, location: "LA" });
19
        }
20
21
        table_13.insert(1, rows);
22
        var nEnd = new Date().getTime();
23
24
        alert("Running time : " + (nEnd - nStart) + "ms");
25
    }
26
});

Result
API