Hi simpzoid,
Take a look at that example:
var data = [{price: 2.25}, {price: 4.50}, {price: 6.20}];
var source = {
localdata: data,
datafields: [ {
name: 'price',
type: 'number'
}],
datatype: 'array'
};
var dataAdapter = new $.jqx.dataAdapter(source);
$("#jqxgrid").jqxGrid({
width: 150,
source: dataAdapter,
autoheight: true,
localization: { currencysymbol : "£" },
columns: [ {
text: 'Preis',
datafield: 'price',
cellsformat: "c2",
cellsalign: 'right'
}]
});
It shows it normally.
Best Regards,
Ivo
jQWidgets Team
http://www.jqwidgets.com/