View Full Version : Ext.ux.TouchGridPanel + renderer function

23 Sep 2011, 6:58 PM
I'm using Ext.ux.TouchGridPanel to display some revenue data. I'm using the renderer function to format the number into a currency format. My issue is this also updates the store to replace the previously numeric 12345.45 value with $12,345.45. Is there anyway around this? Much thanks /Greg

colModel : [{ header : "Vertical",
mapping : "zlabel",
style : "text-align: left; padding:2px;"
header : "Named Revenue",
mapping : "exp_Revenue",
style : "text-align: right;"
renderer : function(val) {
return Utils.currencyFormat(val);

23 Sep 2011, 8:35 PM
Have a look into this thread,

This seems to solve problem with renderer function

24 Sep 2011, 4:25 AM
I went ahead and updated the GitHub repo to include @tomalex0's fix for prepareData

28 Sep 2011, 6:28 PM
Outstanding. Thank you both!!!!