Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Threaded View

  1. #1
    Sencha User
    Join Date
    Jan 2010
    Posts
    30
    Vote Rating
    0
    new is on a distinguished road

      0  

    Default Answered: Search inside extjs tree store

    Answered: Search inside extjs tree store


    I have a text field in my tree toolbar that should take a string from a user then search that through a specific column of tree. I use store filter but there is a problem in my code and I dont know what it is. thanks for help. This is my code:

    PHP Code:
    var onSimpleSearch = function(){
     var 
    searchStrExt.getCmp('searchField').getValue();
       if(
    searchStr){
        var 
    tree Ext.getCmp('infra_tree');
        var 
    tstore tree.getStore();
        var 
    searchReg = new RegExp(searchStr'g');
        
    console.log(searchReg);
        
    tstore.filter({property:"ipadd"value:searchStr});
    }else {
        
    Ext.MessageBox.show({
            
    title'Nothing to search',
            
    msg'Search string is empty',
            
    icon 'ext-mb-info',
            
    buttonsExt.MessageBox.OK
        
    });
      }
    }; 
    Erropr: RegEx is not Defined

  2. TreeStore has no 'filter' method, you'll need to use cascadeBy(fn) on the root node for now.

Thread Participants: 2

Tags for this Thread