I am trying to use renderer to display qtips to show error messages on individual cells in a grid to show when they are in error. The problem is that the qtips don't go away once the error is fixed. I am also changing the background to red when they are in error, this does go away when the cell is no longer in error. The code for the grid column definition is below. I have tried without the else and have also tried returning the html with a <span> or <div> and that doesn't display as well as setting the tdAttr.
How do I remove the qtip once it is there.
How do I remove the qtip once it is there.
Code:
header: "<b>Unit</b>", dataIndex: 'KDCNTI', renderer: function(value, metaData, record, rowIndex, colIndex, store, view) { if ((value === '' && (record.get('KDDB') == '1551' || record.get('KDDB') == '2181')) || (value !== '' && (record.get('KDDB') != '1551' && record.get('KDDB') != '2181'))) { metaData.tdAttr = 'style="color:white;background-color:red" data-qtip="Cell in ERROR" data-qclass="x-form-invalid-tip"'; } else { metaData.tdAttr = ''; } return value; }, editor: { xtype: 'textfield', enforceMaxLength: true, maxLength: 5 }
Comment