I've got a radiobuttonlist with a bunch of list items, some of them disabled.
The label control beside the radio button turns gray, which can be hard to read.
How do I change the color of the label?
I've tried CSS, changing the forecolor - nothing seems to work:
currentButton.Attributes.Add("class", "disabled");
Any ideas?
...
Hey guys, I'm having a bit of trouble with my ASP:RadioButtonList, searched Google and SO, no luck, can you help me out?
I'm having trouble databinding. I've got a custom class that looks like this:
public class myClass{
public myInnerClass{
public int myID;
public String myTextField;
/* other fields*/
}
public List<m...
When I set up a RadioButtonList it creates a table layout for it and I don't want this... how do I get rid of it?
It might be a duplicate but I've searched and haven't manage to find a question like this here.
...
I've received from a design agency the following html to be displayed in a form on one of asp.net webapps:
<label>
<input type="radio" />
Label Text 1
</label>
<label>
<input type="radio" />
Label Text 2
</label>
<label>
<input type="radio" />
Label Text 3
</label>
You can imagine that the output produced wil...
I'm working on a fun 'survey' form and am trying to break up the tedium by over complicating the process. I have a group of radiobuttonlists that I want to dynamically create from a string of names and a string of values. The values is not a problem. It's creating all the radiobuttonlists that I can't figure out.
For instance I could j...
Hi Guys,
I have a RadioButtonList on my web form. I have tried two different means to set the selected item. I have tried in the markup, and in code, like the Page_Load event. It sets and displays correctly. My problem is that the selected radio button no longer responds to the SelectedIndexChanged event. The other items works as expecte...
I'm dynamically creating a RadioButtonList and can't figure out how to add additional text to show up under the radio button.
My basic code is as follows and I want sURL to show up under each resultant radio button.
For i As Integer = 0 To ds.Tables(0).Rows.Count - 1
Dim iLocationID As Integer = ds.Tables(0).Rows(i).I...
Hi,
I have a asp.net web page with a drop down list (RadioButtonList), one of the list item in that list is long text so it wraps to the next line (the list is nested inside a table). I have a auto post back enabled for the list and i handle selection change event. Now if I select that list item with the long text, the selection change e...
I am looking for an example of how to create a custom form builder for a radio button list bound to an object that acts_as_tree. I already have the code that displays the radio button list but want to DRY it up by refactoring into a formbuilder. I can't find any examples of a custom form builder for radio button lists.
Any pointers/li...
Sorry, difficult to give the question a proper title?
I'm basically appending a lot of text together to form the email body in my application from several radiobuttonlists in my web form. So my code looks like this:
StringBuilder body = new StringBuilder();
body.Append("<strong>For question1: </strong> " + ((rblQuestion1.SelectedIndex...
Ok, last question for today I promise!
I have the following line of code that features a radio button list (radTopx)
ddlBuyer.Attributes.Add("onclick", "$('#tbxProdAC').val(''); $('#txtbxHowMany').val(''); $('#GridView1').remove(); $('#radTopx').attr('checked',false); ");
What I am trying to achieve is that when ddlBuyer is clic...
I've got an ASP.NET RadioButtonList that displays four items using RepeatDirection="Horizontal" to display them on a single line. I'm using RepeatLayout="Flow" to avoid the markup for a table. However, this causes the items in the list to be placed right next to each other, which does not look good.
So, I tried the table layout to tak...
This
protected void Page_Load(object sender, EventArgs e) {
RadioButtonList1.Items.Add(new ListItem("London","1"));
RadioButtonList1.Items.Add(new ListItem("Paris", "2"));
}
and this
<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatLayout="Flow">
</asp:RadioButtonList></div>
produce HTML something like...
I am trying to bind a radiobutton list inside a repeater.
So for example my output will be :
Group1
Group1
Group1
Group2
Group2
Group2
Group3
Group3
Group3
I need the user to be able to select only 1 item from Each group, so in total 3 items should be selected.
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate...
I have subclassed the RadioButtonList control in order to create a Control Adapter that outputs the HTML exactly the way I want (it is the first time I write an adapter).
The problem that I am facing is when accessing the "SelectedValue" property, I always get an empty string. If I switch to the superclass I get the proper value, so I a...
Hi Everyone,
Any suggestions on how I would create a radio button list with an option for the user to input free text?
Here's a quick sample of what i'd be looking for:
Red
Blue
Green
Other (textbox would go here)
...
I have an asp:radiobuttonlist that serves two purposes depending on which button is pushed. Now if I have my update button visible, then it will only show textbox1, and if I have my save button visible, it will show textbox2. However, when checking within the method of the indexChanged, it discards the fact that the button is visible and...
Have a master page. The content page has a list with hyperlinks containing request variables. You click on one of the links to go to the page containing the radiobuttonlist (maybe).
First problem: When I get to the new page, I use one of the variables to determine whether to add a radiobuttonlist to a placeholder on the page. I tried...
I am using ListBox for having RadioButtonList behaviour (that's what people recommend as there is no inherent radio button list in WPF). The listbox is bound to a ViewModel.
Now, whenever user changes the selection on listbox, I want to check whether user has some unsaved data on the part of screen and prompt accordingly (typical yes,no...
basically, i just want the RadioButtonList without the radio button on it, i will code the rbl so that selected items have a different background color and make it look more professional, the radio buttons themselves i want to be able to get rid of in terms of apperance... if you know of any way to do it, please do let me know!
...