1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    60
    Vote Rating
    0
    gxtyas is on a distinguished road

      0  

    Default 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.

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    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).

  3. #3
    Sencha User
    Join Date
    Sep 2010
    Posts
    60
    Vote Rating
    0
    gxtyas is on a distinguished road

      0  

    Default


    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);
                 }
             }
        }

  4. #4
    Sencha User
    Join Date
    Sep 2010
    Posts
    60
    Vote Rating
    0
    gxtyas is on a distinguished road

      0  

    Default


    Please ignore my previous post, I am override entire class and changing the onFieldKeyUp method.
    thanks for your prompt response.

Similar Threads

  1. Replies: 2
    Last Post: 22 Sep 2010, 5:45 PM
  2. Advanced Search / Filter for Grid
    By scblue in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 3 Mar 2010, 1:28 AM
  3. [SOLVED] How to filter a grid or a data store on a foreign key
    By lpastor in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 29 Aug 2009, 2:43 PM
  4. Remote filter for Grid with 10,000+ rows?
    By rlaferla in forum Ext GWT: Discussion
    Replies: 6
    Last Post: 12 Aug 2009, 8:48 AM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi