radiobuttonlist

How to set an asp:listitem to an enumeration value declaratively?

I have an asp:RadioButtonList and want to declaratively bind the value to an enumeration. I tried using this type syntax: value = <%# ((int)MyEnum.Value).ToString() %>" I get an error list item does not support databinding. Any ideas? ...

RadioButtonList on ASP.NET (VB)

Hey, I have a RadioButtonList wich contain 4 radio buttons A,B,C,D RBQ.Items.Add("A") RBQ.Items.Add("B") RBQ.Items.Add("C") RBQ.Items.Add("D") How can set the selected value to the radio button who has the value "B" ???? Thanks. ...

Ajax call when clicking a radio button sometimes alternates between being instant to taking ~2 sec

There are 2 radio buttons. Depending on which one you click, the drop down box will load that set of data. Depending on the first one I click, that one will take about 1-2 secs to load, while the other loads instantly. Even click back and forth. I was wondering why, and how I might be able to have it stop loading instantly (weird, I know...

How to reset radio buttons selections on postback?

This is a Drupal Forms question. I am working on a UI that dynamically creates rows of 3 radio buttons based on a selected date. The problem I am having is that if I make some selections of the radio buttons and choose another date to get another set of radio buttons, the radios that were in the first list maintain their selected status...

how to display the list of buttons like drop down list for a button in iPhone

Hi... i am new to iPhone programming... can any body help me out please... in my app i am displaying an image, transparent html page with text about that image and there is audio instead of html text... in the bottom tool bar i have button 'VIEW".. i want this button to show the 3 (radio or normal) buttons in a list like drop up list(for...

asp:RadioButtonList and jQuery to show hide a panel

I have an asp:RadioButtonList named rblDependants which renders as follows and a panel pnlDependants and I need to hide it when radio button selection is "No" and show it when its "Yes". I have tried a few snippets from the forums and none seem to work fine. Can anyone help me pls....! <table id="ctl00_ContentPlaceHolder1_ctl02_rblDep...

RadioButtonList SelectedItem always first one

Hi, I am using simple radiobuttonlist with four items, I have enabled viewstate and postback but whatever option I choose it always return first value. please help... Thanks ListItem item = new ListItem(starthour + " - " + stophour + ds.Tables[0].Rows[i]["LastName"].ToString(), ds.Tables[0].Rows[i]["xavid"] + "¤" + ds.Tables[0].Row...

Read-Only RadioButtonList in ASP.NET 2005

I'm attempting to display the answers in a certain survey, exactly as the surveyed person viewed the original survey. However, when viewing, I don't want the browser to allow changing of the selected options in a RadioButtonList. Is there a way to make a RadioButtonList read-only, without using radioButtonList1.Enabled = false? I've tri...

ASP.NET RadioButtonList and Progresssive Enhancement

I have a RadioButtonList which has AutoPostBack set to True and is being handled server-side: <asp:radiobuttonlist ID="myRBL" OnSelectedIndexChanged="MyRBL_SelectedIndexChanged" RepeatDirection="Horizontal" AutoPostBack="True" runat="server"> <asp:ListItem Selected="True">Choice 1</asp:ListItem> <asp:ListItem>Choice 2</asp:L...

Cannot get jQuery and RadioButtonList to Work

I'm pulling my hair out trying to get a jQuery script working that will pick up the selected value in a RadioButtonList. I've done the usual thing when I can't get a script to run - cut and paste somebody else's into a blank page, get it working and then copy into the required page. I have tried three different scripts, however, that ta...

Adding GroupName to items in RadioButtonList

I have created a class that inherits from RadioButtonList in order to add a GroupName attribute to each list item. (why it was not there already I have no idea). This works as expected when it is rendered, but does not persist the selected items on postback. public class GroupedRadioButtonList : RadioButtonList { [Bindable(true), ...

Get asp.net radiobuttonlist selected value in code behind when using jQuery buttonset

I am using the jQueryUI buttonset on an ASP.NET radiobuttonlist. I need to get the selected value in server-side code when the page posts back. If I don't apply the jQuery buttonset, this is of course easy enough - just grab "SelectedValue". However, when I do apply jQuery buttonset, the selected value does not appear to be available on ...

bind radio button list to column in gridview

I have radio button list in a gridview that needs to be bound to a column. If the value in a column is 0, the first radio button is selected, if 1, the other is selected. This is the code, some of it is partially removed because it is not necessary <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<>" SelectC...

Populating RadiobuttonList dynamically

Hello, I have quite a few radiobuttonLists in my ASP.net webform. I am dynamically binding them using the method shown below: public static void PopulateRadioButtonList(DataTable currentDt, RadioButtonList currentRadioButtonList, string strTxtField, string txtValueField, string txtDisplay) { currentRadioB...

Populate radiobutton group with data from squlite database

Hi! I am writing a game app for Android, where a question word with four different alternatives will show that the user can choose between. I have a database and i can insert from the app, but what would be the easiest way to use a select statement, and then parse the response and populate the five different positions in the radio group...

Why doesnt ASPxRadioButtonList show any items

Hiya, I have a DevExpress ASPxRadioButtonList which does not have any data source for the items. When trying to assign the selected item the control doesnt have any items. I have spent hours looking at this as it is set up to similar controls which work fine. Here is my code: ASPX: <dxe:ASPxRadioButtonList ID="rblPriority" runat="...