PDA

View Full Version : How to generate CheckBox`s dynamic as item to panel



RickardP
2 Sep 2010, 12:39 AM
I have a panel where i have some options for the user to select from and i whant to create a list of checkbox`s from a array for the user to select from.

How i do this?

Condor
2 Sep 2010, 12:42 AM
Do you know the options before you create the form? In that case you can simply build the items array from the options.

If you get the options from e.g. a server request, then you will need to add() them to the form and call doLayout() once after that to render them.