radiobuttonlist

ASP.Net Cannot tab through all radio buttons when selected

I'm trying to implement accessibility (keyboard only) ability on my site, but I'm having problems with Radio Button lists. When using radiobuttonlists, when initially, none of the radio buttons is selected, I am able to tab through every single value and select one upon hitting "enter". However, after a value is selected, I can only tab ...

Client side validation of multiple radio buttons groups

This is my code: <html> <head> <title>scoreboard</title> <script> function calculate() { var sum=0; var total=0; for (var i=0; i < document.questions.group1.length; i++){ if (document.questions.group1[i].checked){ sum = parseInt(document.questions.group1[i].value) total = parseInt(total + sum);}} for (var i...

radiobuttonlist selected value and its validation

hi friends, i have an form in which i have radiolist and set of text boxes and dropdownlist.now when i check an radio some textboxes will be disabled and some text box will be enabled .now i want to validate only the enabled text box and not the disabled one. in the same manner when i check other radiobutton i want to validate the rest o...

How can I prevent asp:RadioButtonList from rendering a HTML-Table?

I would like to render a simple list of - Controls. My ASP.NET Code-behind looks like: RadioButtonList list = new RadioButtonList(); list.ID = rbl.name; list.CssClass = rbl.cssClass; foreach (radio radio in rbl.radio) { ListItem li ...

Changing panel visibility property on radiobuttonlist selection in asp.net page

Good morning stackoverflow! I have a little problem I'm trying to work out thats bugging the life out of me! On my .aspx page i want to be able to show and hide certain panels depending on user selections (radiobuttonlists). For example in my aspx page i have; <form id="form1" runat="server"> <asp:RadioButtonList ID="RadioButton...

ASP.NET Checkboxes/RadioLists Arrow Keys

I have an ASP.NET web application for data entry, and we have big lists of radiobuttons, and long lists of checkboxes, in some sections. The client wants to be able to be able to navigate and manipulate these controls with their keyboard, like the tab/space/enter/right-left-up-down-arrow-keys. Are there any ASP.NET controls that I can ...

ASP.Net Radio Button List Problem

hey all, im having some trouble with the radio button list in ASP.net, for some reason it wont let me select the 2nd item in the radio button list ( index of 1) when i select this item the selected item goes back to 0 (the first item). when i debug the code to see what the selected item is, it shows 0 for some reason, even though i pres...

Hiding/Showing Table Cells with JQuery depending on ASP.NET RadioButtonList

Hello All, Here is jquery code which hides my table cells with the ID of .style2: $('#myRadioButtonList').change(function() { if ($(this).attr('checked') == true && $(this).val() == "HB") { $('.style2').hide("slow"); }; }); and here is my radiobuttonlist <asp:RadioButtonList ID="myRadioButtonList" runat="se...

ASP.NET - How to add a label to a RadioButtonList ListItem?

I have a RadioButtonList with two ListItems included: <asp:RadioButtonList runat="server" ID="optRollover" OnSelectedIndexChanged="RolloverOptionSelected" AutoPostBack="true"> <asp:ListItem Value="0">100% </asp:ListItem> <asp:ListItem Value="1">Less than 100%</asp:ListItem> </asp:RadioButtonList><...

ASP.net hiding panel using javascript

Hi, I have a radioButtonList with 2 items in it. A radiobutton with a "Yes" value and a radionButton with a "No" value. Below that I have a panel which I want made visible when "Yes" radioButton is selected and hidden when "No" is selected. I had originally implemented this using the AutoPostBack attribute but I want to do it in Javasc...

jquery select item in radiobuttonlist via client-side function

I have the following ASP.NET RadioButtonList: <asp:RadioButtonList ID="rbl" runat="server"> <asp:ListItem Text="Type1" Value="1" /> <asp:ListItem Text="Type2" Value="2" /> </asp:RadioButtonList> I would like to select an item in the list programmatically via a client-side jquery function like this (simplified version): functi...

ASP.net looping through controls in a table

hey all, i have a table which contains a bunch of dynamically created radio button lists, im trying to write code which will loop through each one of the radio button list and get the text value of the selected item. i have the following code foreach ( Control ctrl in Table1.Controls) { if (ctrl is RadioButtonList) ...

JavaScript "confirm" on SelectedIndexChange of RadioButtonList

I have a RadioButtonList control and I would like to do a Javascript "confirm" when a user tries to change the index. Currently AutoPostBack is set to TRUE. I can, of course, just call __doPostBack from within a javascript function, etc. I tried a few things with jQuery but you have to worry about mousedown vs. click and then there is...

Synchronizing items in RadioButtonList between Design and Source views

After editing the list of hardcoded items in a RadioButtonList on a ASP.NET page via the Design view, I find that the HTML source for the RadioButtonList still does not update to the latest list of items i.e items are still the ones before the changes. Is there a way to synchronize what appears in the Design view and the actual HTML sou...

Can I add Controls that are not ListItems to a RadioButtonList?

I need to provide a way to allow users to select 1 Subject, but the subjects are grouped into Qualifications and so I want to show a heading for each 'group'. My first thought is an asp:RadioButtonList as that provides a list of options from which only one can be selected but there's no means to add break the list up with headings. So ...

URL Navigation and SQL Insertion After RadioButtonList Selection

Good Morning, I have a radiobuttonlist in my ASP.NET webforms application that is used as a voting tool. The concept is as follows: Users will vote for the blurb in the contentplaceholder using the radiobuttonlist. My list item values are 1 through 3 and my list item text is something like low, medium and high. Questions: 1. I wan...

Customvalidator: Check if radiobuttonlist contains a selected item.

I have a radiobuttonlist with two items, Yes or No. The radiobuttonlist control has a customvalidator that needs a servervalidation function and a javascript clientvalidationfunction. Could you help me? The function in this message works but only when i actually have choosen one of the two listitems, when no listitem is selected the vali...

How to use a session variable in the RadioButtonList ListItem text

Hi, I am trying to create a Rediobuttonlist: In the options' text I want to insert a name of organisation which is logged in. I store the name in a Session variable. So if "A" is loggin in I want them to see: no longer a member of A but option1 no longer a member of A but option2 no longer a member of A but option3 If "B" is...

Ajaxcontrol toolkit ConfirmButtonExtender with radiobuttonlist control

I have a Yes/No Radiobutton List, When the asp.net page is loaded, if there are items in the gridview this radio is defaulted to Yes. Now if the user clicks no, I have to delete all the items for the gridview and persist them in db. But I want to show a confimation whether the user wants to go ahead doing this operation. If user clciks Y...

RadioButtonList javascript firing twice

I am working with .NET 1.1. The RadioButtonList's AutoPostBack is set to TRUE. I added a client script to display an alert with the selected value. But, the alert is displaying twice - before and after the post back. Here is the code.. //javascript function getRadioButtonListSelection(radioButtonListId) { var elementRef = document...