SMART datagrid v.1 > Classes > GridBase

[ grids ver.1.3.7]   Back  Forward

DataLudi.GridBase.getDataCellRect  method

Return the size of data cell specified by index as grid relative coordinate. 

function getDataCellRect (index: CellIndex): Rectangle;
Returns
Rectangle
Parameters
index - CellIndex. required.
Code -1
    $('#click').function () {
        var r = grid.getDataCellRect(grid.focusedIndex);
        console(r.x + ', ' + r.y + ', ' + r.width + ', ' + r.height);
See Also
CellIndex
GridBase.focusedIndex
Examples
Hello Grid