SMART datagrid v.1 > Functions

[ grids ver.1.3.5]   Back  Forward

DataLudi.formatNumber  Function

Like the conversion mode being used in GridStyles.numberFormat, convert and return the value specified as value according to format format. 

function formatNumber (format: String, value: *): String;
Returns
String
Parameters
format - String. required.
value - *. required.
Code -1
    grid.setFooter({
        tooltipCallback: function (column, value) {
            return DataLudi.formatNumber('#,##0.00', value);
        }
    });
See Also
GridStyles.numberFormat
GridFooter.tooltipCallback
Examples
Tooltips