Filtering of Hierarchical Data i…
来源:互联网 发布:我的世界符文矩阵 编辑:程序博客网 时间:2024/05/17 02:27
Source: http://techrays.wordpress.com/2007/10/12/filtering-of-hierarchical-data-in-advanceddatagrid/
There is a TextInput control, in which the user can type somestring to filter. After the user click a button, the filterFunctionwill be changed to a new one, which actually does the filter.
<?xml version="1.0"encoding="utf-8"?>
<s:SkinnableContainerxmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:components="com.demandtec.common.controls.*"
xmlns:views="com.demandtec.openlink.producthierarchy.views.*"
xmlns:comp="com.demandtec.openlink.producthierarchy.util.*"
width="100%" height="100%"
creationComplete="init()">
<fx:Script><![CDATA[
importcom.demandtec.openlink.common.IconConsts;
importcom.demandtec.openlink.producthierarchy.model.ProductHierarchyTree;
importcom.demandtec.openlink.producthierarchy.model.presentation.ProductHierarchyPresentationModel;
importcom.demandtec.openlink.producthierarchy.util.CategoryNameErrorRenderer;
importcom.demandtec.openlink.producthierarchy.util.ImageStatusRenderer;
importmx.collections.ArrayCollection;
importmx.collections.IHierarchicalCollectionView;
importmx.managers.PopUpManager;
[Bindable]
private varitemRendererFactory:ClassFactory= null;
[Bindable]
private varimageItemRendererFactory:ClassFactory= null;
[Autowire]
[Bindable]
public varmodel:ProductHierarchyPresentationModel;
privatefunction init():void {