1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    34
    Vote Rating
    0
    sravaniv is on a distinguished road

      0  

    Default Unanswered: Need urgent help:Column Header Filters

    Unanswered: Need urgent help:Column Header Filters


    Hi guys,

    I have implemented column header filters for my grid, but the data is filtered only if I enter the start of the string. i.e. 'Smith' would result only if I type 'Sm' but not 'ith'.

    In short , I need a filter which would take any part of the string and still gives me the result.

    I have to handle this at server side.At server side, though Im able to get the records which match a part of the string, when I display it in my grid , the data is again filtered to match the start of the string.And thus I dont get the expected result.

    Can anybody please help? Its very very urgent.

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    34
    Vote Rating
    0
    sravaniv is on a distinguished road

      0  

    Default


    Anybody in here ??

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Location
    Ukraine
    Posts
    154
    Answers
    11
    Vote Rating
    6
    Romick is on a distinguished road

      0  

    Default Hi

    Hi


    Why not you gave some peace of code?

    PHP Code:
    Ext.onReady(function() {

    var 
    simpleCombo Ext.create('Ext.form.field.ComboBox', {
      
    fieldLabel'Select a single state',
      
    displayField'name',
      
    valueField'abbr',
      
    width320,
      
    labelWidth130,
      
    queryMode'local',
      
    typeAheadtrue,
      
    minChars2,
      
    name'agentDownline',
      
    store: new Ext.data.SimpleStore({
          
    fields: ['abbr''name''slogan'],
          
    data: [
            [
    'VA''Virginia',      'Mother of States'],
            [
    'WA''Washington',    'Green Tree State'],
            [
    'WV''West Virginia''Mountain State'],
            [
    'WI''Wisconsin',     'America\'s Dairyland'], 
            [
    'WY''Wyoming',       'Like No Place on Earth']
          ]
      }),
      
    listeners: {
        
    buffer50,
        
    change: function() {
          var 
    store this.store;
          
    //store.suspendEvents();
          
    store.clearFilter();
          
    //store.resumeEvents();
          
    store.filter({
              
    property'name',
              
    anyMatchtrue,//this is the key of your problem!!!
              
    value   this.getValue()
          });
        }
      }
    });

    Ext.create("Ext.Window", {
        
    itemssimpleCombo
    }).show(); 
    Also I dont anderstand if filtering is made on server side why do you need filter it localy?
    Also I would recomend you read this helpfull article about combobox. http://skirtlesden.com/articles/extjs-comboboxes-part-1.
    Hope this help you.

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