[CLOSED] Problem with filtering a tree grid in ext 2.0 using mvc

  1. #1

    [CLOSED] Problem with filtering a tree grid in ext 2.0 using mvc

    I have a tree panel with 3 columns of which only 1 is a tree column when i filter the tree only the tree column is filtered.
        <script type="text/javascript">
    FilterFunction: function (node) {
            var filterString = App.txtSystemreportSearch.getValue();
            return (node.data.Name.toLowerCase().indexOf(filterString.toLowerCase()) != -1);
        },
    
        // filter tree
        filterTree: function (tf, e) {
            var tree = App.tgSystemreport;
            text = tf.getRawValue();
            tree.clearFilter();
            if (Ext.isEmpty(text, false)) {
                return;
            }
            if (e.getKey() === Ext.EventObject.ESC) {
                SystemReportConfiguration.clearFilter();
            }
            else {
                tree.filterBy(SystemReportConfiguration.FilterFunction);
            }
    
        }
    </script>
    
    <ext:TreePanel  ID="tgSystemreport" runat="server" UseArrows="true" 
                            Animate="true" AutoExpandColumn="Name" EnableSort="true" ContainerScroll="true" Width="515"
                                Height="400"  Collapsible="true"   MultiSelect="false" 
                                SingleExpand="true" RootVisible="false"
                            Border="false" Frame="false">
                            <Store>
                                    <ext:TreeStore   runat="server">
                                        <Model>
                                            <ext:Model   runat="server">
                                                <Fields>
                                                    <ext:ModelField Name="Name" />
                                                    <ext:ModelField Name="LastUpdateDate" />
                                                    <ext:ModelField Name="ReportType" />
                                                </Fields>
                                            </ext:Model>
                                        </Model>
                                    </ext:TreeStore>
                                 </Store>
    
                            
                            <Root>                                      
                                  <ext:Node NodeID="systemreportRootNode" >
                                   <Children>
                                        <ext:Node Text="Dummy">
                                            <Children>
                                                <ext:Node Text="Dummy"></ext:Node>
                                            </Children>
                                        </ext:Node>
                                   </Children>
                                    </ext:Node>
               
                                   </Root>
                            <ColumnModel>
                                <Columns>
                                    <ext:TreeColumn runat="server" DataIndex="Name" Flex="2"  Text="Name"
                                       SortType="AsText"  Width="260" />
                                    <ext:Column runat="server"  DataIndex="ReportType" Flex="1"  Text="ReportType" 
                                        Width="140" >
                                    <Renderer Fn="SystemReportConfiguration.ReportTypeRenderer" />
                                    </ext:Column>
                                    <ext:Column runat="server" DataIndex="LastUpdateDate" Flex="1"  Text="Lastupdatedate"
                                        Width="200" />
                                </Columns>
                            </ColumnModel>
                           <SelectionModel>
                                   <ext:TreeSelectionModel  Mode="Single">
                                   </ext:TreeSelectionModel>
                           </SelectionModel>
                            <Listeners>
                                <ItemClick Handler="filterTree" />
                            </Listeners>
                        </ext:TreePanel>
    Last edited by Daniil; Nov 01, 2012 at 11:40 AM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi @RCM,

    Thank you for the report. We are investigating.
  3. #3
    It has been fixed. Please update from SVN.

Similar Threads

  1. Upload Image, filtering and preview problem
    By sohag in forum 1.x Help
    Replies: 2
    Last Post: Mar 18, 2014, 2:53 AM
  2. [CLOSED] Problem with order of items in Grid to Tree
    By skisly in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Feb 01, 2012, 5:20 PM
  3. [CLOSED] Problem with order of items in Grid to Tree
    By skisly in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 25, 2012, 9:55 PM
  4. [CLOSED] GridPanel sorting and filtering problem
    By kenanhancer in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 31, 2011, 3:38 PM
  5. Grid (Store) filtering question
    By quasimidi in forum 1.x Help
    Replies: 2
    Last Post: Jun 15, 2010, 9:10 AM

Posting Permissions