I don't think the code came through correctly. Use the debugger to see if HCV openNode is being called. You might have to collapse all open nodes when the filter changes.
On 3/5/14 9:21 PM, "ilikeflex" <[email protected]> wrote: >Attached is sample code.. > > >In text box write 'nine" >Click "test" button. >I was expecting the grid will show me the hireachy whose children has >filename as "nine". >Actual result is grid becomes empty with no items. > > > ><?xml version="1.0" encoding="utf-8"?> ><s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" > xmlns:s="library://ns.adobe.com/flex/spark" > xmlns:mx="library://ns.adobe.com/flex/mx" > minWidth="955" >minHeight="600"> > <s:layout> > <s:VerticalLayout/> > </s:layout> > <fx:Declarations> > > </fx:Declarations> > > <fx:Script> > > </fx:Script> > <mx:Label fontSize="16" htmlText="<b> Filtering of Hierarchical >Data >in AdvancedDataGrid </b>" /> > > <mx:AdvancedDataGrid id="adg" dataProvider="{new HierarchicalData(fs2)}" >displayItemsExpanded="true" > width="400" height="350" > > <mx:columns> > <mx:AdvancedDataGridColumn dataField="fileName" /> > <mx:AdvancedDataGridColumn dataField="size" /> > <mx:AdvancedDataGridColumn dataField="lastModified" /> > </mx:columns> > </mx:AdvancedDataGrid> > > <mx:HBox> > > <mx:Label text="Enter text:" /> > <mx:TextInput id="txt" /> > <mx:Button label="Test" click="filterIt();" /> > > </mx:HBox> > > ></s:Application> > > > > >-- >View this message in context: >http://apache-flex-users.2333346.n4.nabble.com/HierarchicalCollectionView- >filterfunction-tp5295p5307.html >Sent from the Apache Flex Users mailing list archive at Nabble.com.
