0 Replies Latest reply on Dec 7, 2011 7:52 AM by dnd906

    Search Advanced Datagrid with hierarchial Data...

    dnd906

      Im new to FLEX bt i have 2yr experience in PHP. So decided to SHOW some of my DATABASE in flex ...

       

      So created a Hierarchial Data with Advanced Datagrid and it works fine ..

       

      <?xml version="1.0"?>

      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

      <mx:Script>

      <![CDATA[

      import mx.collections.XMLListCollection;

      import mx.rpc.events.ResultEvent;

      [Bindable] public var taskDPList:XMLListCollection;

       

      private function taskResultHandler(event:ResultEvent):void{

      taskDPList = new XMLListCollection(event.result.Task);

      }

       

       

      ]]>

      </mx:Script>

      <mx:HTTPService id="taskRequest" useProxy="false" resultFormat="e4x" result="taskResultHandler(event)" url="Task.xml" />

      <mx:AdvancedDataGrid width="100%" height="100%" creationComplete="taskRequest.send();" displayItemsExpanded="true">

      <mx:dataProvider>

      <mx:HierarchicalData source="{taskDPList}" />

      </mx:dataProvider>

      <mx:columns>

       

        <mx:AdvancedDataGridColumn dataField='@TaskNo' headerText="TaskNo" width='100'/>

      <mx:AdvancedDataGridColumn dataField="@TaskName" headerText="Task" id ="TaskName"/>

      <mx:AdvancedDataGridColumn dataField="@TaskMember"  headerText="TaskMember" id="TaskMember" width="125"/>

      <mx:AdvancedDataGridColumn dataField="@TaskRemark"  headerText="Details"/>

      <mx:AdvancedDataGridColumn dataField="@TaskProgress" headerText="TaskProgress" width="35"/>

       

      </mx:columns>

      </mx:AdvancedDataGrid>

      </mx:Application>

       

       

       

      Now how to make a search and filter or highlight facilty on this advanced datagrid ...

       

      eventhough i made a search and filter datagrid row its logically wrong as its a child parent Structure ...

       

      So thought of hightlighting rows in which search term occurs.

       

      Can anyone tell is datagrid row hightligthing possible. and provide some help or tutorials for that ...

       

      Googled many bt can find a solution .....