1 Reply Latest reply on Oct 3, 2007 10:10 AM by camfieldaj

    Best Practice

      I have a panel with a bunch of text objects. Each of the text objects are populated by the DB, all fine. I want to know best practice on displaying only the text objects via an IF statement. The canvas should size adjust depending on the visible text objects. Should I add/remove child object depending on the IF statement or is there a better/cleaner way? I ask the question only to determine the "Best Practice" in my continual learning of Flex.

      Thanks in advance!
        • 1. Re: Best Practice
          camfieldaj Level 1
          I'm not sure I understand your question. I usually display results from a query in a datagrid unless there's only going to be one result. If you only want to display the resultset if it meets some condition, they yes you can do that. There are examples in the explorer example application to show how to add controls to applications dynamically.