1 Reply Latest reply on Feb 6, 2008 12:04 PM by Flex harUI

    XML and DataGrid

    josh_aries
      Hi,
      I am working with the XML files and here is my question.

      This is the portion of the XML file


      you can acess my xml file at http://pastebin.com/f66fd1ee3


      My XML file keeps changing and the number of action_column nodes may vary for each xml file.

      I am trying to display the xml file in the grid using

      http://pastebin.com/f2e57f382


      public function LabelFunc(item:Object, column:DataGridColumn): String
      {
      return item.action_column.(@column_number==column.dataField).@column_value;
      }

      So is there a way to know how many action_column nodes are there and based on that can I do the datagrid dynamically?