Dynamically loading check box controls horizontally

S

Stuart Miller

How can you do this using the placeholder control? When I call the
add method, the check boxes show up, but they are displayed
vertically. Should I be using the literal control? Any help would be
appreciated.

Stuart Miller
 
S

Steve Caliendo

Make sure the width of the placeholder is larger than the controls you want
to add.

For example, if you would like to add 3 checkboxes that are 50px wide, your
placeholder should be set to be at least 151px. If it's not, the palce
holder will automatically grow down, not wide.

Steve
 
S

Stuart Miller

Thank you for your response. I looked into this, but there is no
property for "Width" in the Placeholder control. How would I adjust
the width?
 
S

Steve Caliendo

Sorry about that. I only ever use the panel control. If you don't have a
compelling reason to use the placeholder for dynamic controls, try the panel
control. (At least you can set it's width)

Steve
 
S

Stuart Miller

Thank you for your post. This appears to work like I want it to. The
CheckBoxList has a RepeatDirection property which allows the controls
to be rendered left to right. Most usefull.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top