PDA

View Full Version : [FIXED] Grid's Filter feature works wrong with Lockable column



Baidaly
2 Apr 2013, 7:10 PM
REQUIRED INFORMATION


Ext version tested:


Ext 4.2.0.663



Browser versions tested against:


IE9
FF19.0



Description:


Grid's Filter feature works wrong with Lockable column



Steps to reproduce the problem:


Create the GridPanel with a locked column
Add filters feature to the Grid
Set filter for the locked column
Unlock column using column header menu



The result that was expected:


Header menu of the column should have menu item for filtering



The result that occurs instead:


Header menu of the column doesn't have menu item for filtering



Test Case:



<html>
<head>
<link rel="stylesheet" href="resources/ext-theme-gray/ext-theme-gray-all.css" type="text/css" />
<script type="text/javascript" src="ext-all-debug.js"></script>
<script type="text/javascript" src="gridfilters.js"></script>
</head>

<body id="ext-body">
<script>
Ext.onReady(function () {
Ext.create("Ext.grid.Panel", {
border: false,
renderTo: Ext.getBody(),
columns: {
items: [{
dataIndex: "Id",
text: "ID"
}, {
locked: true,
dataIndex: "Company",
text: "Company"
}
]
},
store: Ext.create("Ext.data.Store", {
model: Ext.define(Ext.id(), {
extend: "Ext.data.Model",
fields: [{
name: "Id",
type: "int"
}, {
name: "Company",
type: "string"
}
],
idProperty: "Id"
}),
autoLoad: true,
sorters: [{
direction: "ASC",
property: "Company"
}
],
pageSize: 10,
proxy: {
data: [{
"Id": 1,
"Company":"3m Co"
}
],
type: 'memory'
}
}),
features: [{
ftype: "filters",
local: true,
filters: [{
dataIndex: "Company",
type: "string"
}
]
}
]
});
});
</script>
</body>
</html>



HELPFUL INFORMATION

Screenshot or Video:


42849



Additional CSS used:


only default ext-all.css



Operating System:


Win7 Pro

mitchellsimoens
3 Apr 2013, 5:09 AM
Using IE9 I see the filter menu item just fine

42873

g-tech
3 Apr 2013, 7:51 AM
Hi ,

please unlock the column, and look to the column header for the filters.

Best regards

New member Thomas :)

mitchellsimoens
3 Apr 2013, 8:05 AM
Thanks for the report! I have opened a bug in our bug tracker.

mattjenkins
27 Sep 2013, 9:55 AM
In 4.2.1 I find that locking/unlocking a filtered column results in the filters disappearing on that column when it appears on the other side. Restore the original locked status and the filters are still there. Results remain filtered throughout but having the filter disappear on the columns is obviously a problem.