My radio buttons are not retaining their stylized setting on a ajax postback.
I have something like this inside a panel
<div id="radio-grou-fu" class="btn-group" data-toggle="buttons">
<asp:RadioButton GroupName="Group1" ID="Radio1Yes" AutoPostBack="true" runat="server" Checked="False" CssClass="btn btn-fix btn-default" Text="Yes"></asp:RadioButton>
<asp:RadioButton GroupName="Group1" ID="Radio1No" AutoPostBack="true" runat="server" Checked="True" CssClass="btn btn-fix btn-default " Text="No"></asp:RadioButton>
When clicking on a styled button it correctly applies the "active" class to the span to style it correctly. However when i perform a partial postback, even though the checked state of the radio is persisting the 'active' class is getting removed and not reapplied.
Do i need some sort of JS to manually check if its checked and then apply the correct active class?