SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.setCellStyles  method

Apply the data cells specified by parameter dataRowIndices and fields to CellStyle registered by styleId in grid. 

Reset the state of editor of data cell in which was displaying the editor. 

function setCellStyles (dataRowindicies: *, fields: *, styleId: String);
Returns
Void
Parameters
dataRowindicies - *.
fields - *.
styleId - String.
Code -1
    $('#setCellStyles').click(function () {
        var rows = grid.getSelectedDataIndices();
        if (rows && rows.length > 0) {
            grid.setCellStyles(rows, ['project_id', 'project_name'], 'style04');
        }
    });
See Also
setCellStyle
CellStyle
Examples
Cell Styles