senzacionale
senzacionale

Reputation: 20916

aspx radiobutton control list in one line

http://www.codetoad.com/asp.net/aspnetcontrols11.asp

Is it possible to have radiobutton control list in one row. Now it is in 3 rows.

Upvotes: 4

Views: 12926

Answers (3)

Andrew Sehr
Andrew Sehr

Reputation: 352

In your RadioButtonList set the property of RepeatLayout="Flow" and RepeatDirection="Horizontial". This will make items in a radio button list horizontal instead of vertical.

Upvotes: 5

Oded
Oded

Reputation: 499002

You need to use the RepeatDirection and RepeatLayout properties of the RedioButtonList control.

There are several ways of getting the layout you want - I suggest reading the documentation of both properties in order to make an informed decision on which one is most suitable for your situation.

Upvotes: 11

Shekhar_Pro
Shekhar_Pro

Reputation: 18430

Why dont you try adding each radio button to <div> or <li> tag and then set float:left in Css for each <li>. That way i think it will render in one line. Just make sure to set width:__ style to accommodate all radio buttons

Upvotes: 0

Related Questions