PDA

View Full Version : Filter on hidden column does not work (ExtJS 4.2.1)



awolfard
4 Dec 2013, 5:52 AM
Hi,

I am using ExtJS 4.2.1 and it seems that it is not possible to add a filter on a hidden column.
If I look at the code of 'Ext.ux.grid.FiltersFeature' then I see at some places (addFilter and createFilter) it uses 'me.getGridPanel().columnManager.getColumns()' to get the columns where the filter can/should be applied on. This method does not return the hidden columns apparently.

Is this a bug or can you only filter on visible columns.

This is a small piece of the code:
var filterFeature = grid.getView().getFeature('gridPortletGridFilter');
var filter = filterFeature.addFilter({
active: true,
type: 'string',
dataIndex: 'COLA'
});

When column with dataIndex 'COLA' is hidden, then filtering does not work (variable filter is undefined).

Regards,

Arnoud.

Gary Schlosberg
4 Dec 2013, 10:51 AM
It was a bug that was previously reported:
http://www.sencha.com/forum/showthread.php?265811
http://www.sencha.com/forum/showthread.php?268893

While the status on those threads doesn't indicate it, it was fixed in 4.2.2.