SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onDataButtonClicked  event

It will be fired when click the cell which is operated by the button such as ButtonCellRenderer, etc. 

function onDataButtonClicked (grid: GridBase, index: CellIndex);
Returns
Void
Parameters
grid - GridBase.
index - CellIndex.
Code -1
    grid.onDataButtonClicked = function (grid, index) {
        setTimeout(function () {
            alert(index.column.name() + ' cell is clicked.');
        });
    };
See Also
ButtonCellRenderer
Examples
Button Cell Renderer