Dustin Davis
Dustin Davis

Reputation: 14585

ASP.NET RadioButtonList layout not working

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

Answers (3)

Joe Niland
Joe Niland

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

Dustin Davis
Dustin Davis

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

Related Questions