Hi,
Please could someone advise as to how to access the value of radiobutton selected.
This is the radiobuttonlist:
<telerik:GridTemplateColumn UniqueName="ShotEastWest" ColumnEditorID="ShotEastWest" HeaderText="Shot East/West" Visible="false">
<ItemTemplate>
<%# Eval("ShotEW")%>
</ItemTemplate>
<EditItemTemplate>
<asp:RadioButtonList ID="rdShotEastWest" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Text="East" Value="1"></asp:ListItem>
<asp:ListItem Text="West" Value="2"></asp:ListItem>
</asp:RadioButtonList>
</EditItemTemplate>
</telerik:GridTemplateColumn>
I think the VB.NET I am using is wrong:
Dim radioShotEastWest As RadioButtonList = TryCast(edit("ShotEastWest").Controls(0), RadioButtonList)
Dim ShotEastWest As Integer = radioShotEastWest.SelectedValue
Thanks, Ida
Please could someone advise as to how to access the value of radiobutton selected.
This is the radiobuttonlist:
<telerik:GridTemplateColumn UniqueName="ShotEastWest" ColumnEditorID="ShotEastWest" HeaderText="Shot East/West" Visible="false">
<ItemTemplate>
<%# Eval("ShotEW")%>
</ItemTemplate>
<EditItemTemplate>
<asp:RadioButtonList ID="rdShotEastWest" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Text="East" Value="1"></asp:ListItem>
<asp:ListItem Text="West" Value="2"></asp:ListItem>
</asp:RadioButtonList>
</EditItemTemplate>
</telerik:GridTemplateColumn>
I think the VB.NET I am using is wrong:
Dim radioShotEastWest As RadioButtonList = TryCast(edit("ShotEastWest").Controls(0), RadioButtonList)
Dim ShotEastWest As Integer = radioShotEastWest.SelectedValue
Thanks, Ida