Skip to Content
author's profile photo Former Member
Former Member

Radio button in table column


I display a table of data. The user wants to select a row. For this, there is a column called "Select" with a radio button. The user is allowed to select only one column, but they want to do it by clicking on a radio button, not using lead selection. My problem is, that several of the radio buttons are "selected". How do I make only one radio button selectable? I want to be able to click on one radio button, and if I click on another one the first choice should be vacated.

Or if I were to use lead selection, is there an easy way to tie the radio button with the lead selection. Like, if the user selects a row, can the radio button in this row get turned on automatically?

I welcome any hints 😊



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 07:58 PM

    Hi Ira,

    I'm not sure I understand why you would want this as lead selection should be sufficient for most selection cases. Still, one way you could use this is to embed an action hander to the OnLeadSelection event of the table. Here are my thoughts:

    1. Have an attribute in the context node of type WDY_BOOLEAN or some other boolean to represent your radio button.

    2. Bind the cell editor of your colum to a radio button or check box and set the value to the context attribute. You will also want to set the enabled setting to FALSE.

    3. Add an action to OnLeadSelect for your table

    4. Have the action handler do your button logic.

    Perhaps if you give an example of the scenario for this, I'd be able to help with the solution.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.