On 9/3/13 7:15 AM, "Harbs" <[email protected]> wrote:
>To expand on Peter's response: > >Like Peter said, you create all the elements you need when the item >renderer is first created. If you don't want to show a button, set the >visibility to false and depending on how you are laying them out, you >might need to set the size to 0 as well. That way you can simulate them >being added and removed and have things reflow properly. You'll have to >set gap to 0 and you might need to play around with spacers as well for >this to work. FWIW, instead of "size to 0" others use includeInLayout and/or states to manage the existence and placement of widgets. Each strategy has different memory/performance trade-offs. -Alex
