SMART datagrid v1.4 > Classes > GridBase

Back  Forward

DataLudi.GridBase.focusedDataRow  property

현재 입력 포커스를 갖는 데이터행 이나 TreeDataRow

현재 행이 데이터셋의 행에 연결된 DataRow나 TreeDataRow가 아니면 null을 리턴한다. focusedRowGridRow 객체를 리턴할 수 있다. 

Getter
function focusedDataRow(): DataRow|TreeDataRow
Code -1
    // grid
    $('#delete').click(function () {
        var row = grid.focusedDataRow();
        if (row) {
            ds.deleteRow(row.dataIndex());
        }
    });
Code -2
    // tree
    $('#delete').click(function () {
        var row = tree.focusedDataRow();
        if (row) {
            ds.deleteRow(row);
        }
    });
See Also
focusedIndex
focusedDataIndex
focusedRow
focusedRowIndex
focusedColumn
onCurrentChanging
onCurrentChanged
onCurrentRowChanged
CellIndex
DataRow
TreeDataRow
Examples
Focused Cell