javascript - can I get the correct format -


  • i new extjs
    • my fiddle doesn't solve problem if have currency
    • if want format amount according particular currency, need format it.
    • with moneycolumn, have store contains currency codes, currency symbol , amount format.
    • since cannot use moneycolumn, looking see if there else can used format amount if pass currency code
    • the fiddle provided, have pass format how can correct format
    • providing code below..
    • it great if guys provide inputs...

http://jsfiddle.net/yy77ja65/

{     text : "number without dots",     flex : 2,     dataindex : "numberwithoutdots",     renderer: ext.util.format.numberrenderer('€ 0') } 

you use custom renderer

function rendermoney(value,b,records){     return ext.util.format.number(value, records.data.currency + ' ' + records.data.format)                         } ... {     text : "number dots",          flex : 1,     dataindex : "numberwithdots",     renderer: rendermoney } .... 

http://jsfiddle.net/mowglisanu/yy77ja65/2/


Popular posts from this blog