cancel
Showing results for 
Search instead for 
Did you mean: 

Need help getting radio button to work within WD tabel

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member214651
Active Contributor
0 Kudos

Hi,

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

Regards,

Poojith MV

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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".

Former Member
0 Kudos

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