Hello lalit singh,
You can add thousands separator support to your column by setting the cellsrenderer callback function as follows:
{
text: 'Sales', datafield: 'fir_sales', width: 200, cellsrenderer: function (row, columnfield, value, defaulthtml, columnproperties, rowdata) {
var num2 = value.toString().split('.');
var thousands = num2[0].split('').reverse().join('').match(/.{1,3}/g).join(',');
var decimals = (num2[1]) ? '.' + num2[1] : '';
var answer = thousands.split('').reverse().join('') + decimals;
return '<span style="margin: 4px; float: ' + columnproperties.cellsalign + ';">' + answer + '</span>';
}
}
Best Regards,
Dimitar
jQWidgets team
http://www.jqwidgets.com/