Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8632605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:22:33+00:00 2026-06-12T09:22:33+00:00

I am using a radio button because it makes binding the items and controlling

  • 0

I am using a radio button because it makes binding the items and controlling dynamic events very easy.

My problem is hiding the RadioButtonList ListItem “circles” that are to the left or right of the ListItem.Text.

I set each ListItem.Text property to be an HTML <img>.

I would like the RadioButtonList to display just the ListItem.Text property in the RadioButtonList list, without the radio-button circle beside it. After some research, I realize I do not think it is possible to hide the radio-button’s ListItem circle’s, without hiding the entire radio button list.

So my second option, would be to place the ListItem.Text on-top of the RadioButtonList ListItem “circles” via CSS. Here is what I have tried to far, but I’m afraid my CSS skills are slack 🙁

noPizzaMod.Text = "<img src=\"image.png \" />";
noPizzaMod.Attributes.CssStyle.Add("float", "left");
noPizzaMod.Attributes.CssStyle.Add("padding","0 1em");
noPizzaMod.Attributes.CssStyle.Add("text-align", "center");
rdo_pizzamods.Items.Add(noPizzaMod);

Results: Just added padding to the left of the radio-button ListItem Circle.

Again, the task at hand is to float the ListItem.Text (the picture element) on-top of the RadioButtonList ListItem “circle”

Thank you for your time!

PS: Another thing I have tried was using JQuery to display:none the radio-button listitems but of course that hides the text, as well as the entire radio-button list 🙁

As a last resort, I could switch to the togglebuttonextender for the checkbox, but this would include a redesign of our display mechanism. Was hoping there was a simple solution and one of the guru’s could point me there!

EDIT:

I simply have an asp:Panel which I dynamically add the RadioButtonList to in the code behind.

<asp:Panel ID="pnl_pizzamods" runat="server"></asp:Panel>

Like so

ListItem PizzaMod = new ListItem();
noPizzaMod.Text = "<img src=\"image.png \" />";
noPizzaMod.Attributes.CssStyle.Add("float", "left");
noPizzaMod.Attributes.CssStyle.Add("padding","0 1em");
noPizzaMod.Attributes.CssStyle.Add("text-align", "center");
rdo_pizzamods.Items.Add(noPizzaMod);
pnl_pizzamods.Controls.Add(rdo_pizzamods);

I also add custom dynamic event handlers and a lot of other mojo in the background which makes the RadioButtonList data binding easy for me to control. I’m sure it does not effect the visual layout though! Again, thanks for the help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:22:33+00:00Added an answer on June 12, 2026 at 9:22 am

    Have you tried simply hiding the radio button?

    input[type='radio'] { visibility: hidden; }
    

    Fiddle: http://jsfiddle.net/kboucher/8GaV5/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here i am using a radio button to calculate the date difference between two
I am using an asp radio button group to list out answers in a
I'm using a Dojo radio button group in a mobile Xpage and it is
i am trying to create a Radio button using Cakephp like the one the
How can I change a checkbox for a radio button using jQuery?
I'm using the localstorage idea mentioned in a previous post: remember radio button selections
I am using a post to get a parameter based on a radio button
I'm using the following script for a window.onload custom radio button replacement (http://ryanfait.com/resources/custom-checkboxes-and-radio-buttons/custom-form-elements.js) and
I am coding a quiz module, which contains a radio button set, using jQuery
I need to have the user make a selection using radio button and the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.