[CLOSED] TreePanel Info Filter

Threaded View

Previous Post Previous Post   Next Post Next Post
  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:

                                                    EnableKeyEvents="true" Height="40">
                                                        <ext:FieldTrigger Icon="Clear" />
                                                        <TriggerClick Handler="clearFilter();" />
                                                <ext:Button ID="Button3" runat="server" Text="Conferma" Scale="Small"
                                            IconUrl="Images/Icon/save24.png" >
                                        <Click Handler="filterTree(TriggerField1)" />
    var filterTree = function (tf, e) {
                    var tree = TreePanelOri,
                        text = tf.getRawValue();
                    if (Ext.isEmpty(text, false)) {                    
                        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.

    Last edited by Daniil; Mar 14, 2014 at 8:27 AM. Reason: [CLOSED]

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