Hi nikolayalmaty,
You can customize the aggregates rendering. In order to achieve that, you need to create a function called aggregatesrenderer which returns the displayed HTML.
text: 'Price', datafield: 'price', cellsalign: 'right', cellsformat: 'c2', aggregates: [{ 'Total': function(aggregatedValue, currentValue, column, record) { var total = currentValue * parseInt(record['quantity']); return aggregatedValue + total; }}], aggregatesrenderer: function(aggregates) { var renderstring = aggregates["Total"]; return '<span style="margin-top: 4px; float: right;">' + renderstring + '</span>'; }}
Here’s a sample with source code:
http://jsfiddle.net/jqwidgets/PHhpR/
Best Wishes,
Peter Stoev
jQWidgets Team
http://www.jqwidgets.com