PDA

View Full Version : GridFilters: Problem with string search with space



Stepan Koci
4 Jun 2011, 7:35 AM
Hello,

I have a problem with plugin for grid filter features. It seems to be blocked to enter more than one word. I need to be able to filter by sentences with two or more words like "RX 220". However it doesn't let me to enter space. Is it possible to set it up? How?

ssamayoa
6 Jun 2011, 1:54 PM
Wow!

I didn't realize that until now.

I will check the sources and let you know.

Regards.

wiznia
7 Jun 2011, 6:55 AM
I'm trying to find where the code that breaks the space is and can't find it anywhere on the filters feature... Maybe is something inherent with the menu or the grid??

ssamayoa
7 Jun 2011, 8:17 AM
Me too.
:(

wiznia
7 Jun 2011, 10:08 AM
It has to do with the menu almost for sure. Look at this example:
http://dev.sencha.com/deploy/ext-4.0.1/examples/menu/menus.html
There you have two combos, one inside a menu, and other directly in the toolbar, the one in the toolbar works fine.
You also can't use SHIFT + ARROW to select the text inside the combos that are in a menu.
Should we post this as an ext bug related to the menu??

FlaminPhoenix
1 Aug 2011, 12:23 AM
Anyone found a solution for this? or.. is it reported as a bug right now? Im having the same issue now too...

wiznia
1 Aug 2011, 1:55 AM
No, couldn't find it... And there's no much activity in the forum.

siltronic
8 Aug 2011, 4:20 AM
Hi,

In fact, there is a problem with key nav.

Space seems to be catched in the enter function ( ? ) :


constructor: function(menu) {
var me = this;


me.menu = menu;
me.callParent([menu.el, {
down: me.down,
enter: me.enter,
esc: me.escape,
left: me.left,
right: me.right,
space: me.enter,
tab: me.tab,
up: me.up
}]);
},


It's not the best solution because you lose the space bar action, but to repair it, just comment this line, in an override like this :


Ext.override(Ext.menu.KeyNav, {
constructor: function(menu) {
var me = this;


me.menu = menu;
me.callParent([menu.el, {
down: me.down,
enter: me.enter,
esc: me.escape,
left: me.left,
right: me.right,
//space: me.enter,
tab: me.tab,
up: me.up
}]);
}
});


and you will be able to write space in textfield inside menu (and so on your filter ;)).

wiznia
8 Aug 2011, 5:24 AM
Great!! Thank you!
I didn't know of this KeyNav class I'll have to take a look at it.

Stepan Koci
9 Aug 2011, 12:18 AM
Thank you for the problem solution!

FlaminPhoenix
9 Aug 2011, 5:58 AM
Have you reported this in the bugs section of this forum? If not, then Ill open a new ticket.

siltronic
9 Aug 2011, 6:12 AM
No, because I'm currently working with this plugin, and I have some problem with it. I'm working to solve theses problems, but I didn't know if there are plugin's bug or not. So I'm waiting to see that.

So I will post it and maybe other bugs in fews day/week ;)

aacoro
20 Aug 2011, 1:10 PM
Is this reported yet? The solution works but it is strange... :)

siltronic
20 Aug 2011, 11:25 PM
I'll finish my work this week, so i will report it in few days.



But the solution is strange because it's a strange problem... Why only space don't work ? Why arrow left/right are working ? It's navigation key too, so they should have the same problem... but no.

quick thinking :

Spacebar touch event reported in parent container while other do not ?

siltronic
23 Aug 2011, 4:50 AM
posted :

http://www.sencha.com/forum/showthread.php?144749-ExtJS-4.0.2a-Can-t-write-space-in-textfield-inside-Menu&p=640322#post640322 (http://www.sencha.com/forum/showthread.php?144749-ExtJS-4.0.2a-Can-t-write-space-in-textfield-inside-Menu&p=640322#post640322)

;)