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 468931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:43:53+00:00 2026-05-12T23:43:53+00:00

I have sort of a table with a radio-button column. I managed to make

  • 0

I have sort of a table with a radio-button column. I managed to make radio-button column work dynamically inserting into a cell (div if matter). But, on postback innerHtml hasn’t been updated with “checked” attribute.

Could you give me an idea how can I find out (on the server) if radio-button has been checked?

More info: This is on user control inside update panel.

This would be good post on my topic, still doesn’t 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-05-12T23:43:54+00:00Added an answer on May 12, 2026 at 11:43 pm

    Any reason you cannot use a standard asp:RadioButton and use javascript to ensure it is mutually exclusive. I have done this before by adding a custom attribute to the radiobutton and then using a js function to uncheck all items with that attribute and then check the selected one. This works around the IE issue which prevents the groupname attribute from working on radioboxes that are in different containers.

    radioButton.InputAttributes.Add("ClientGroupName", "grpRadioList");
    radioButton.InputAttributes.Add("onclick",
      string.Format(
         "javascript:radiobuttonToggle('{0}','ClientGroupName','grpRadioList');"  
          ,radioButton.ClientID));
    

    and use the following JS to uncheck all radios and then check the one you want.
    Note i used InputAttributes instead of Attributes as the radiobutton is wrapped inside a span tag so InputAttributes is for items added to the actual input control rather than the span.

    function radiobuttonToggle(selectedRB, attribName, attribValue)
    {
        var objRadio = document.getElementById(selectedRB);
    
        for(i = 0; i < document.forms[0].elements.length; i++)
        {
            elm = document.forms[0].elements[i];
            if (elm.type == 'radio')
            {
                if(elm.getAttribute(attribName) == attribValue)
                    elm.checked = false;
            }
        }
        objRadio.checked = true; 
    }
    

    You can then expose radioButton.Checked as a property in your CS file and reuse this as a control.

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

Sidebar

Related Questions

I have a table I'd like to sort with a priority column. This column
I have created 20 radio button dynamically <script> $(function() { $( #sortable1, #sortable2 ).sortable({
I have a table which is dynamically generated upon clicking a search button as
I have a necessity to sort a given HTML table of the following structure,
I have a self-referential table in my database that looks sort of like above.
I have a table containing a bunch of input fields, sort of like a
I have a table sort of like this: TABLE BOOKS ID TITLE SUBTITLE ------------------------------------
I have to constantly sort a table by a field that has a decimal
I need to sort league table in Rails 3, so I have LeagueTable model,
i have to sort the employees in the EMPLOYEE table by the following rule:

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.