Reputation: 20916
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
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
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
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