PDA

View Full Version : nbsp in grid



Eugent
21 May 2012, 2:59 AM
hello, have so problem in use grid - in emmpty cells is displayed &nbsp. Do you have any reccomendations&

sword-it
21 May 2012, 5:59 AM
Hi,
you can use renderer in your columns and check it if it is empty or not.



{
header: 'Email',
dataIndex: 'email',
renderer: function(value) {
if (value=='&nbsp' || value=='') {//check value is empty or nbsp?
return ''; // if yes ,return an '' in the column
}
}
}


For more details, check this - http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.column.Column-cfg-renderer