I was wondering if anyone could tell me how to select the appropriate radio button from a radio button list located in a grid pop up edit box? I've been searching for hours. My code is below with the bold area on the control. I have no problem doing text boxes, etc. using <%# Eval("variablename") %> but get really confused otherwise. Any input would be great. Thanks.
<telerik:RadGrid runat="server" ID="RadGrid1" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" Width="450px" DataSourceID="SqlDataSource1"
Skin="Hay"
ShowStatusBar="True" GridLines="None">
<PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" />
<MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="spotlight_id" DataSourceID="SqlDataSource1" EditMode="PopUp">
<EditFormSettings PopUpSettings-Modal="true"></EditFormSettings>
<Columns>
<telerik:GridEditCommandColumn ButtonType=ImageButton>
</telerik:GridEditCommandColumn>
<telerik:GridTemplateColumn UniqueName="active" Visible="false" HeaderText="Active">
<EditItemTemplate>
<asp:RadioButtonList id="active" runat="server">
<asp:ListItem Value="0">No</asp:ListItem>
<asp:ListItem Value="1">Yes</asp:ListItem>
</asp:RadioButtonList>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="docdate" Visible="false" HeaderText="Document Date">
<EditItemTemplate>
<telerik:RadDatePicker ID="docdate" runat="server" Skin="Hay" Calendar-Skin="Hay" Calendar-EnableNavigationAnimation="true">
</telerik:RadDatePicker>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Title" UniqueName="title" SortExpression="resource_name">
<ItemTemplate>
<asp:Label runat="server" ID="lblTitle" Text='<%# Eval("title") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox runat="server" Style="width: 205px; margin-left: 3px;" ID="txbTitle"
Text='<%# Bind("title") %>' />
<asp:RequiredFieldValidator ID="Requiredfieldvalidator1" runat="server" ControlToValidate="txbTitle"
ErrorMessage="Please enter a title." Display="Dynamic" SetFocusOnError="true">
</asp:RequiredFieldValidator>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Viewable Date" UniqueName="viewabledate" SortExpression="viewabledate">
<ItemTemplate>
<asp:Label ID="lblViewableDate" runat="server" Text='<%# Eval("viewabledate") %>'>
</asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridButtonColumn ConfirmText="Are you sure you wish to delete this item?" Text="Delete" CommandName="Delete"
UniqueName="column" ButtonType=ImageButton>
</telerik:GridButtonColumn>
</Columns>
<EditFormSettings EditColumn-ButtonType="ImageButton" EditColumn-InsertImageUrl="~/images/Update.gif">
<EditColumn UniqueName="EditCommandColumn1">
</EditColumn>
<PopUpSettings ScrollBars="None" />
</EditFormSettings>
<ExpandCollapseColumn Visible="False" Resizable="False">
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
</MasterTableView>
<ClientSettings AllowRowsDragDrop="True">
<Selecting AllowRowSelect="True" EnableDragToSelectRows="true"/>
<ClientEvents OnRowDropping="onRowDropping" />
</ClientSettings>
</telerik:RadGrid>
<telerik:RadGrid runat="server" ID="RadGrid1" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" Width="450px" DataSourceID="SqlDataSource1"
Skin="Hay"
ShowStatusBar="True" GridLines="None">
<PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" />
<MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="spotlight_id" DataSourceID="SqlDataSource1" EditMode="PopUp">
<EditFormSettings PopUpSettings-Modal="true"></EditFormSettings>
<Columns>
<telerik:GridEditCommandColumn ButtonType=ImageButton>
</telerik:GridEditCommandColumn>
<telerik:GridTemplateColumn UniqueName="active" Visible="false" HeaderText="Active">
<EditItemTemplate>
<asp:RadioButtonList id="active" runat="server">
<asp:ListItem Value="0">No</asp:ListItem>
<asp:ListItem Value="1">Yes</asp:ListItem>
</asp:RadioButtonList>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="docdate" Visible="false" HeaderText="Document Date">
<EditItemTemplate>
<telerik:RadDatePicker ID="docdate" runat="server" Skin="Hay" Calendar-Skin="Hay" Calendar-EnableNavigationAnimation="true">
</telerik:RadDatePicker>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Title" UniqueName="title" SortExpression="resource_name">
<ItemTemplate>
<asp:Label runat="server" ID="lblTitle" Text='<%# Eval("title") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox runat="server" Style="width: 205px; margin-left: 3px;" ID="txbTitle"
Text='<%# Bind("title") %>' />
<asp:RequiredFieldValidator ID="Requiredfieldvalidator1" runat="server" ControlToValidate="txbTitle"
ErrorMessage="Please enter a title." Display="Dynamic" SetFocusOnError="true">
</asp:RequiredFieldValidator>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Viewable Date" UniqueName="viewabledate" SortExpression="viewabledate">
<ItemTemplate>
<asp:Label ID="lblViewableDate" runat="server" Text='<%# Eval("viewabledate") %>'>
</asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridButtonColumn ConfirmText="Are you sure you wish to delete this item?" Text="Delete" CommandName="Delete"
UniqueName="column" ButtonType=ImageButton>
</telerik:GridButtonColumn>
</Columns>
<EditFormSettings EditColumn-ButtonType="ImageButton" EditColumn-InsertImageUrl="~/images/Update.gif">
<EditColumn UniqueName="EditCommandColumn1">
</EditColumn>
<PopUpSettings ScrollBars="None" />
</EditFormSettings>
<ExpandCollapseColumn Visible="False" Resizable="False">
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
</MasterTableView>
<ClientSettings AllowRowsDragDrop="True">
<Selecting AllowRowSelect="True" EnableDragToSelectRows="true"/>
<ClientEvents OnRowDropping="onRowDropping" />
</ClientSettings>
</telerik:RadGrid>