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

Need help getting radio button to work within WD tabel

Dear Experts,

I am having issues in getting a radio button to work inside a WD table. I searched the forum and tried several suggestions but all the buttons are getting displayed as selected. Can some please give me the steps on how to accomplish this? Thanks in advance for your help.

Abu

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Oct 13, 2010 at 05:54 AM

    Hi,

    Please go through the below links for using a RadioButton in Table:

    Selection of row in Table using radiobutton

    How to use Radiobutton Cell Editor in Table using Master Column

    Regards,

    Poojith MV

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2010 at 05:45 AM

    When you insert a radio button column in a table,

    You have two properties for that table cell editor.

    1. Key to select (Attribute RadioButton1, keep this outside table node)

    2. Selected Key (Attribute SelectedKey. keep this one inside table node)

    set the values for the radiobutton attributes in key to select.

    If there are more than one radio button columns in a table to be selected,

    Map the same selected key attribute to all the radio button table cell editor.

    When you want to read the selected radio button in a row,

    use getSelectedKey();

    This will get you to the value of the selected radio button in a row.

    Regards,

    Hanif

    Edited by: Hanif Kukkalli on Oct 13, 2010 11:53 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2010 at 08:13 AM

    If this is for lead select kind of radio button.

    then place KeyToSelect attribute inside table node and SelectedKey attribute in the context node.

    bind KeyToSelect to key to select property in the radio button column table cell editor and

    SelectedKey to selected key property in the radio button column table cell editor

    Create values for the check box rows for the KeyToSelect attribute.

    U can get the selected row when any radio button is selected in that column.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Everyone,

      Thank you for the quick responses on how to solve my problem, which is now resolved. I am copying the solution offered by Hanif Kukkalli and Armin Reichert here:

      Context:

      Rows (node,c=0:n)

      --- rowIndex (integer)

      selectedRowIndex (integer)

      Bind the "selectedKey" property of the radio button (cell editor) to attribute "selectedRowIndex" (outside table data source node) and bind "keyToSelect" to attribute "Rows.rowIndex". Make sure that the "rowIndex" attribute will contain the index of the node element in node "Rows".

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.