Aspx radiobutton single line checklist

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

Is it possible to have a radio book control list in one line. Now it is in 3 lines.

+4
source share
3 answers

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

There are several ways to get a layout - I suggest reading the documentation about all the properties in order to make an informed decision about which one is most suitable for your situation.

+11
source

In your RadioButtonList set the property RepeatLayout="Flow" and RepeatDirection="Horizontial" . This will cause the items in the radio button list to be horizontal rather than vertical.

+5
source

Why aren't you trying to add each switch to the <div> or <li> , and then set float: left to Css for each <li> . So, I think this will be displayed on one line. Just remember to set the width:__ style to accommodate all the radio buttons

0
source

Source: https://habr.com/ru/post/1333897/


All Articles