Replace cellRenderer and how to avoid numeric grouping

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Replace cellRenderer and how to avoid numeric grouping

dbrec
Hi all,

There is a way to use a "replace" cellrenderer for a table column and set the "groupingUsed" property to false?

BR, dbRec
Reply | Threaded
Open this post in threaded view
|

Re: Replace cellRenderer and how to avoid numeric grouping

rsantiagopaz
try this:

tbl is the table.


var numberformatMontoEs = new qx.util.format.NumberFormat("es").set({groupingUsed: false, maximumFractionDigits: 2, minimumFractionDigits: 2});

var tableColumnModel = tbl.getTableColumnModel();
var renderer = new qx.ui.table.cellrenderer.Number();
renderer.setNumberFormat(numberformatMontoEs);
tableColumnModel.setDataCellRenderer(0, renderer);
Reply | Threaded
Open this post in threaded view
|

Re: Replace cellRenderer and how to avoid numeric grouping

rsantiagopaz
Im sorry, I misunderstand your question.
Reply | Threaded
Open this post in threaded view
|

Re: Replace cellRenderer and how to avoid numeric grouping

rsantiagopaz
In reply to this post by dbrec
maybe some like this:

http://tinyurl.com/k99cu2z