I have a field which is numeric and it should be currency is '$' and it has '0.000,00' struct. for currency and number struct'0.000,00' I have to use renderer for both of them. However, two renderers does not work in right way. The last renderer written works. how can I solve this problem?
{
header: dil('Fiyat'),
width: 30,
sortable: true,
currencySymbol: '$',
renderer: Ext.util.Format.usMoney,
renderer: Ext.util.Format.numberRenderer('0.000,00/i'),
dataIndex: 'fiyat'
}
solution:
renderer: Ext.util.Format.numberRenderer('$0.000,00/i'). it works both currency and format .
Use a renderer function:
{
header: dil('Fiyat'),
width: 30,
sortable: true,
renderer: function(value, metaData, record, rowIndex, colIndex, store) {
return value; //You can render your value here however you like.
},
dataIndex: 'fiyat'
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.