I have a grid with different columns and with text selection enabled:
viewConfig: {
markDirty : false,
enableTextSelection: true
},
Some of the columns shows plain data like strings, but others shows formated numbers:
header : '<span style="color:#C85E00;font-weight:bold;">COUNT</span>',
dataIndex : 'count',
itemId : '',
style : 'text-align:center;',
flex : 0.25,
align : 'right',
renderer : function (v, params, data, rowIndex, colIndex){
return Ext.util.Format.number(v,'0.000 /i');
}
In the columns that has no renderer, the text selection works perfect, but when I try to select the text of a column that has a renderer, has strange behavior. I need to click at least 3-4 times to select all the text, but in the columns without renderer with a doubleclick all works perfect.
Do I need to add something more to the column with renderer to select text correctly??