PDA

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



gp40
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);
}
...

tomalex0
23 Sep 2011, 8:35 PM
Have a look into this thread,
http://www.sencha.com/forum/showthread.php?110780-Ext.ux.TouchGridPanel-v2.0b1/page18

This seems to solve problem with renderer function

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

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