PDA

View Full Version : [CLOSED] GridPanel column filter problem with chrome



Tactem
Oct 09, 2013, 3:47 PM
Hi guys,
I have an GridPanel with one column in my webForm application. Here is my js column filter code :


var filterUserRight = function (item, e) {
var store = Ext.getCmp('userTab_GridUser').getStore();
if (item.value != '') {
store.filter([
Ext.create('Ext.util.Filter', { property: "Login", value: item.value, root: 'data', anyMatch: true })
]);
}
else {
store.clearFilter();
}
};

In my gridPanel i have this :


<Listeners>
<KeyDown Fn="filterUserRight" Buffer="250" />
</Listeners>

my filter works on IE & Firefox but not on chrome. Any idea ?

Baidaly
Oct 09, 2013, 7:42 PM
Hello!

It seems that filtration works fine, so I guess the problem in item argument in your function. Can you debug your code in Chrome to understand what exactly is wrong. I guess there should be a error message in Chrome console.

If you would not be able to find the source of the issue, provide a sample to reproduce.

Tactem
Oct 10, 2013, 1:34 PM
Hello!

It seems that filtration works fine, so I guess the problem in item argument in your function. Can you debug your code in Chrome to understand what exactly is wrong. I guess there should be a error message in Chrome console.

If you would not be able to find the source of the issue, provide a sample to reproduce.

Hi finally it works. I don't know why it didn't work yesterday. Sorry for the inconvenience