-
4 Jun 2011 7:35 AM #1
GridFilters: Problem with string search with space
GridFilters: Problem with string search with space
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?
-
6 Jun 2011 1:54 PM #2
Wow!
I didn't realize that until now.
I will check the sources and let you know.
Regards.UI: Sencha Architect 2.x / ExtJS 4 MVC
Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
Application Server: Glassfish 3.1.x
Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5
If you like my answer please vote!
-
7 Jun 2011 6:55 AM #3
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??
-
7 Jun 2011 8:17 AM #4
Me too.
UI: Sencha Architect 2.x / ExtJS 4 MVC
Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
Application Server: Glassfish 3.1.x
Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5
If you like my answer please vote!
-
7 Jun 2011 10:08 AM #5
It has to do with the menu almost for sure. Look at this example:
http://dev.sencha.com/deploy/ext-4.0...enu/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??
-
1 Aug 2011 12:23 AM #6
Anyone found a solution for this? or.. is it reported as a bug right now? Im having the same issue now too...
No one stands taller than the last man standing
-
1 Aug 2011 1:55 AM #7
No, couldn't find it... And there's no much activity in the forum.
-
8 Aug 2011 4:20 AM #8
Hi,
In fact, there is a problem with key nav.
Space seems to be catched in the enter function ( ? ) :
Code: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 :
and you will be able to write space in textfield inside menu (and so on your filterCode: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 }]); } });
).
-
8 Aug 2011 5:24 AM #9
Great!! Thank you!
I didn't know of this KeyNav class I'll have to take a look at it.
-
9 Aug 2011 12:18 AM #10
Thank you for the problem solution!


Reply With Quote