[CLOSED] TreePanel Info Filter

  1. #1

    [CLOSED] TreePanel Info Filter

    Hi, i use the filter for find the node, but with many record the first time is slow, the second time to execute the filter is ok.

    I have a solution for this case for help my?

    I load intere tree in Page_Load (c#), and it's ok, se expand manually it' work ok, but se filter use:


    <ext:TriggerField 
                                                    ID="TriggerField1" 
                                                    runat="server" 
                                                    EnableKeyEvents="true" Height="40">
                                                    <Triggers>
                                                        <ext:FieldTrigger Icon="Clear" />
                                                    </Triggers>
                                                    <Listeners>
                                                      
                                                        <TriggerClick Handler="clearFilter();" />
                                                    </Listeners>
                                                </ext:TriggerField>
                                                <ext:Button ID="Button3" runat="server" Text="Conferma" Scale="Small"
                                            IconUrl="Images/Icon/save24.png" >
                                    <Listeners>
                                        <Click Handler="filterTree(TriggerField1)" />
                                    </Listeners>
    var filterTree = function (tf, e) {
                    var tree = TreePanelOri,
                        text = tf.getRawValue();
                   
                    tree.clearFilter();
                
                    if (Ext.isEmpty(text, false)) {                    
                        return;
                    }
                
                        var re = new RegExp(".*" + text + ".*", "i");
                
                        tree.filterBy(function (node) {
                            return re.test(node.data.text);
                        });
                
                };
    First time is many slow, but if repeat the filter is ok.

    Thanks
    Aurelio
    Last edited by Daniil; Mar 14, 2014 at 8:27 AM. Reason: [CLOSED]
  2. #2
    First and next filters should not consume different times only if you do not use remote loading for subnodes (when you expand a node then it try to load own children)

    We need a test case reproduces the issue
  3. #3
    Hi Vladimir...
    I load all the tree then load the page, but with IE11 the first filter the time is 3-4 second, the next filter only +/- 1 second..
    With other browser the different is almost irrelevant.

    I'll see if I can reproduce an example with all the data in the tree.

    Thansk
    Aurelio

Similar Threads

  1. [CLOSED] TreePanel selection fails when filter is applied'
    By RCN in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 02, 2013, 4:40 AM
  2. [CLOSED] Treepanel advance filter on load data from code behind.
    By UT007 in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 07, 2013, 11:06 PM
  3. [CLOSED] How to format one grid cell info based on other cell info?
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 01, 2013, 2:12 PM
  4. Replies: 0
    Last Post: Apr 23, 2012, 5:50 AM
  5. Replies: 1
    Last Post: Sep 30, 2011, 11:15 AM

Posting Permissions