3 Replies Latest reply on Apr 10, 2008 9:41 PM by sentiboy

    Conditional Display of DataGrids

    sentiboy
      Hi

      I am using Cairngorm Architechture in my application. My application parses a XML file and generates datagrids based on the tags in the XML file (no. of tags in XML may vary). The application has different views (mxml files) which contain different datagrids corresponding to different tags.

      I have binded "visible" property of these datagrids to the XML parsing logic i.e. If the tag is found in the XML then set corresponding datagrid's visible property to true else set it as false.

      The above logic works fine except that it leaves empty space in between displayed datagrids(for the invisible datagrids that correspond to missing tags in the XML) .

      Can anyone suggest me a better way of handling such scenario?

      Thanks
      sentiboy