Reputation: 14585
No matter what I set on the radiobuttonlist, it still renders are an unordered verticle list.
<asp:RadioButtonList runat="server" ID="myCtrl"
RepeatDirection="Horizontal" RepeatLayout="Flow" style="margin-bottom: 0px" >
< asp:ListItem Text="Add it!" Selected="False" />
< asp:ListItem Text="No, thank you." Selected="false" />
< /asp:RadioButtonList >
Upvotes: 3
Views: 2454
Reputation: 31
If you happen to be using Sitefinity (as I am) it may be due to a Sitefinity-implemented-adapter...
http://www.sitefinity.com/devnet/kb/sitefinity-3-x/rendering-radiobuttonlist.aspx
Upvotes: 3
Reputation: 919
I got this working with ASP.NET 4.0 by including it in a Skin file.
e.g.
<asp:RadioButtonList SkinID="HorizontalInlineRadioButtonList" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" CellPadding="10" CellSpacing="3" />
Upvotes: 2
Reputation: 14585
I've tried this and it just doesn't work for me either. Must be a bug in ASP.NET i tried asp.net 4 and 3.5.
Upvotes: 0