I encountered an issue with the following code snippet...
Ext.define("Requestor.view.main.RequestGrid", {
extend: 'Ext.grid.Panel', // Our base class. A grid panel.
... extensive code ...
columns: [
... additional code ...
{
text: 'Status',
dataIndex: 'status',
renderer: function(value, metaData) {
metaData.tdStyle = (value == 'Ready') ?
'color:green;font-weight: bold' :
'color:red;font-style: italic'
return(value)
},
filter: { type: 'list', value: 'Ready' },
flex: 1
}
... more code ...
The functionality works fine upon initial page load, and when I manually adjust the filters to display additional rows with statuses other than 'Ready'. (view screenshot)
https://i.sstatic.net/lANIZ.png
However, when attempting to change the sorting on the Status column, the filter automatically reverts to only showing rows with a status value of 'Ready'. (view screenshot)
https://i.sstatic.net/CpL89.png
I'm unsure if this issue is a bug in the code or if I am making an error somewhere. Any insights would be greatly appreciated.
Thank you!