SSISO Community

시소당

[TrustForm] 그리드에 있는 값을 get - set

1. grid공동메도드가 있는경우

grid.getValue("노드위치,"노드이름");

ex ) grid.getValue(1,"name");



2. 없는경우
 //셀의 데이타 가져오기2
    this.getValue = function(row, id) {
        var node = this.getNodeSet();
        return model.getValue(node + "[" +  (row - this.fixedRows() + 1) + "]/" + id);
    }

    //셀의 데이타 셋
    this.setValue = function(row, id, value) {
        var node = this.getNodeSet();
        return model.makeValue(node + "[" +  (row - this.fixedRows() + 1) + "]/" + id, value);

1273 view

4.0 stars