on 10-12-2010 9:21 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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".
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.