[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 9: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
    Vladimir Shcheglov
    Sr. Developer
  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, 5: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 08, 2013, 12:06 AM
  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, 3:12 PM
  4. Replies: 0
    Last Post: Apr 23, 2012, 6:50 AM
  5. Replies: 1
    Last Post: Sep 30, 2011, 12:15 PM

Posting Permissions