SMART datagrid v1.4 > Classes > TreeDataSet
DataLudi.TreeDataSet.getValue method
데이터셋 행의 field 지정한 필드 값을 리턴한다.
function getValue (row: Integer|TreeDataRow, field: Integer|String): *;
- Returns
- *
- Parameters
- row - Integer|TreeDataRow. required.
- field - Integer|String. required.
필드 인덱스나 필드명.
- Note
Code -1
var index = tree.focusedIndex();
if (index.isDataCell(tree)) {
var value = ds.getValue(index.getDataIndex(tree), index.dataField());
$('#addr').val(value);
}
- See Also
- setValue
- GridBase.focusedIndex
- CellIndex.getDataIndex
- Examples
- Tree DataSet