-
27 Oct 2010 7:35 AM #1
Gxt, Grid Remote Filter triggers filter search on KeyPress instead of Enter key
Gxt, Grid Remote Filter triggers filter search on KeyPress instead of Enter key
Sven,
How can I control the remote filter trigger, Currently it does remote filter on key press instead of enter key,
I would like to trigger the remote filter on Enter Key and not on key press.
Please advice.
-
27 Oct 2010 7:40 AM #2
First thing when searching for custom behaviour i would take a look at the source, for example at the source of StringFilter. You will find out that you need to override onFieldKeyUp for this (in StringFilter).
-
27 Oct 2010 7:55 AM #3
Thanks Sven, I am sorry if i am asking stupid question
When I do the following, its not triggering the filter call,
Code:class CustomStringFilter extends StringFilter { public CustomStringFilter(String dataIndex) { super(dataIndex); } protected void onFieldKeyUp(FieldEvent fe) { if(fe.getKeyCode() == KeyCodes.KEY_ENTER) { //MessageBox.alert("calling Super onFieldUp","fe is"+fe.getKeyCode(), null); super.onFieldKeyUp(fe); } } }
-
27 Oct 2010 8:20 AM #4
Please ignore my previous post, I am override entire class and changing the onFieldKeyUp method.
thanks for your prompt response.
Similar Threads
-
Pressing 'Enter' key that triggers a button causes issue on TextArea
By zet in forum Ext GWT: DiscussionReplies: 2Last Post: 22 Sep 2010, 5:45 PM -
Advanced Search / Filter for Grid
By scblue in forum Ext 3.x: Help & DiscussionReplies: 5Last Post: 3 Mar 2010, 1:28 AM -
[SOLVED] How to filter a grid or a data store on a foreign key
By lpastor in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 29 Aug 2009, 2:43 PM -
Remote filter for Grid with 10,000+ rows?
By rlaferla in forum Ext GWT: DiscussionReplies: 6Last Post: 12 Aug 2009, 8:48 AM


Reply With Quote