1. #81
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    376
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    I don't think that a "paging" tree is a good idea. Tree is hierarchical structure, not a linear sequence of items.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  2. #82
    Ext User
    Join Date
    Dec 2007
    Posts
    9
    Vote Rating
    0
    pawelb1973 is on a distinguished road

      0  

    Default


    Maybe, but if you have 5000 nodes under selected parent node and You had to wait about 180 sec what you choose?
    Wait or paging until you find what you need? I'll be chose paging.

  3. #83
    Sencha User
    Join Date
    Dec 2010
    Posts
    126
    Vote Rating
    0
    varunach is on a distinguished road

      0  

    Default


    Hi saki,

    First of all i'd like to say thanks for making this tool.. it's really help to a LOT of developers.

    I'm having a little problem in implementing your tool. Here's the code i'm using inside a TreePanel config:

    Code:
    tbar : ['Filter:', {
                        xtype : 'trigger',
                        anchor : '-20',
                        triggerClass : 'x-form-clear-trigger',
                        onTriggerClick : function() {
                            this.setValue('');
                            treePanel.filter.clear();
                        },
                        id : 'filter',
                        enableKeyEvents : true,
                        listeners : {
                            keyup : {
                                buffer : 150,
                                fn : function(field, e) {
                                    if (Ext.EventObject.ESC == e.getKey()) {
                                        field.onTriggerClick();
                                    } else {
                                        var val = this.getRawValue();
                                        var re = new RegExp('.*' + val + '.*', 'i');
                                        treePanel.filter.clear();
                                        treePanel.filter.filter(re, 'text');
                                    }
                                }
                            }
                        }
                    }]
    The problem here is that when i haven't expanded a node and searching for any of its child nodes, the trigger isn't able to find it. But if i manually expand the node once, the trigger is working perfectly. What could be the problem? I'm using ExtJS 3.3.1

    Thanks

  4. #84
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    376
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    This is only for fully loaded trees. It cannot know anything about nodes that are sill on the server.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  5. #85
    Sencha User
    Join Date
    Dec 2010
    Posts
    126
    Vote Rating
    0
    varunach is on a distinguished road

      0  

    Default


    tree was already fully loaded. I mean the data has already been passed from server to the browser. I got it running by doing this..

    Code:
    treePanel.filter.filter(re, 'text', treePanel.getNodeById('1'));
    It wasn't considering the root node configured along with the TreePanel root config option.

  6. #86
    Sencha User
    Join Date
    Jan 2008
    Location
    Levittown, PA
    Posts
    316
    Vote Rating
    2
    mjhaston is on a distinguished road

      0  

    Default


    I'm sorry to add to this years old thread, but I am wondering if anyone has the same issue as me. I got this extension working pretty much out of the box. Plugged it into an existing tree. Finds all instances of my search term perfectly ... but it continues to call my loader over and over until I kill or refresh my browser.

    I think this is all of my tree code:

    Code:
    	var treeLoaderExt = new Ext.tree.TreeLoader({
    		dataUrl : '/cgi-bin/cgijson003.pgm',
    		baseParams : {
    			library : '',
    			file : ''
    		},
    		listeners : {
    			load : function(loader, node, response) {
    				loadAddColumnsBtn();
    				if (treePanelExt.getNodeById('application-user')) {
    					Ext.getCmp('login').update('Logged in as:  ' + treePanelExt.getNodeById('application-user').text);
    				}
    			}
    		}
    	});
    
    	var treeRoot = new Ext.tree.AsyncTreeNode();
    
    	var treePanelExt = new Ext.tree.TreePanel({
    		id : 'navTree',
    		region : 'center',
    		// title : 'Cube Dimensions',
    		split : true,
    		height : 400,
    		minSize : 150,
    		autoScroll : true,
    		rootVisible : false,
    		margins : '0 0 4 0',
    		useArrows : true,
    		animate : true,
    		enableDD : false,
    		containerScroll : true,
    		loader : treeLoaderExt,
    		root : treeRoot,
    		bbar : {
    			xtype : 'toolbar',
    			items : {
    				xtype : 'button',
    				id : 'clear',
    				text : 'Clear All',
    				iconCls : 'icon-bullet_cross',
    				handler : function() {
    					treePanelExt.getRootNode().cascade(function(n) {
    						var ui = n.getUI();
    						ui.toggleCheck(false);
    					});
    				}
    			}
    		},
    		tbar : ['Filter:', {
    			xtype : 'trigger',
    			triggerClass : 'x-form-clear-trigger',
    			onTriggerClick : function() {
    				this.setValue('');
    				treePanelExt.filter.clear();
    			},
    			id : 'filter',
    			enableKeyEvents : true,
    			listeners : {
    				keyup : {
    					buffer : 150,
    					fn : function(field, e) {
    						if (Ext.EventObject.ESC == e.getKey()) {
    							field.onTriggerClick();
    						} else {
    							var val = this.getRawValue();
    							var re = new RegExp('.*' + val + '.*', 'i');
    							treePanelExt.filter.clear();
    							treePanelExt.filter.filter(re, 'text');
    						}
    					}
    				}
    			}
    		}],
    
    		listeners : {
    			click : function(node, event) {
    				if (node.id.substring(0, 10) == 'visitation') {
    					userid = node.id.substring(11);
    					userName = node.text.substring(9);
    					filtersForm.getForm().findField('hiddenUser').setValue(userid);
    
    					columnsStore.load({
    						params : {
    							userid : userid,
    							view : filtersForm.getForm().findField('hiddenView').getValue(),
    							hiddenUser : quickSearchForm.getForm().findField('library').getValue()
    						}
    					});
    
    					quickSearchForm.form.reset();
    					columnsGrid.getSelectionModel().clearSelections();
    					// conditionsGrid.store.load();
    					resultsGrid.store.load();
    
    				} else if (node.id == 'user-maintenance') {
    					userMaintenanceWindow.show();
    				}
    			},
    			checkchange : function(node, checked) {
    				if (checked) {
    					node.getUI().addClass('selected');
    				} else {
    					node.getUI().removeClass('selected');
    				}
    			}
    		}
    	});
    
    	treePanelExt.filter = new Ext.ux.tree.TreeFilterX(treePanelExt);

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