Let's say that I have two radio buttons that I'd like to bind to a database. Now, both fields are bound, but only one of them is selected based on the data in the database. Would the following code work?
<telerik:RadButton ID="ID1" runat="server" ToggleType="Radio" GroupName="MyGroup" ButtonType="ToggleButton" AutoPostBack="false" Text="Choice 1" Checked='<%# Bind("datasourcefield")=="Choice 1" %>'> </telerik:RadButton><br /> <telerik:RadButton ID="ID2" runat="server" ToggleType="Radio" GroupName="MyGroup" ButtonType="ToggleButton" AutoPostBack="false" Text="Choice 2" Checked='<%# Bind("datasourcefield")=="Choice 2" %>'> </telerik:RadButton><br />
If this code would not work, what would?