0 Replies Latest reply on Jun 2, 2009 10:36 PM by scorptique

    Filtering ADG. Data from external XML file.

    scorptique Level 1

      My ADG is the hierarchy kind. The main folder is "Singapore", which opens up into "north", "south", "east", "west" and then opened up into their street names and contact details. I want to do instant filter with their addresses....What am I suppose to type?

       

      ------------------------------------------------------------------------------------------ --------------------------------------------------------

       

      <mx:AdvancedDataGrid width="576" height="341" id="agd" x="8"
                            doubleClickEnabled="true" itemDoubleClick="changeHandler(event)" y="35" displayItemsExpanded="true" variableRowHeight="true" wordWrap="true">
              <mx:columns>
                  <mx:AdvancedDataGridColumn dataField="@locations"
                      headerText="Region"/>
                  <mx:AdvancedDataGridColumn dataField="@l_title"
                      headerText="Location"/>
                  <mx:AdvancedDataGridColumn dataField="@l_street"
                      headerText="Address"/>
                  <mx:AdvancedDataGridColumn dataField="@l_contact"
                      headerText="Contact"/>
              </mx:columns>
          </mx:AdvancedDataGrid>

       

      -------My XML code----------------------------------------------------------

       

      <Mainlocations locations="Singapore">

       

      <Sublocations locations="north">
      <l_title="Causeway Point" l_street="1 Woodlands Square, #01-39 Causeway Point,  Singapore 738099"" l_contact="68941404"/>
      <details l_id="17" l_title="IMM Building" l_street="2 Jurong East Street 21, #01-51 Singapore 609601" l_postal="609601" l_contact="65619249" />
      </Sublocations>

       

      <Sublocations locations="south">
      <l_title="Amara" l_street="165 Tanjong Pagar Road, #01-15 Amara Hotel Shoppin Singapore 088539"l_contact="62243616" />
      <l_title="Bugis Village" l_street="241/243 Victoria Street Bugis Village, Singapore 188030" l_contact="63347125"/>

      </Sublocations>

       

      </Mainlocations>