cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Radiobutton Cell Editor in Table using Master Column

Former Member
0 Kudos

Hi Guys,

I have a Table that uses a Master Column. I need to have a field that uses a Radio Button type cell editor. A user should only be ably to select ONE row via the Radio Button at a time.

I have done all this but I only seem to be able to select multiple radio buttons instead of only one. It is like the radio buttons do not get "regognised" as a group. Could you please advise as I probably set the "keyToSelect" and "selectedKey" properties incorrectly.

tks

Christiaan

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I think the following should work:

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

Armin

Former Member
0 Kudos

hi

Try like this.

Insert a column in your table.

in that insert Table cell editor of type Radiobutton.

Former Member
0 Kudos

Hi,

This is exactly what I have done. But I am able to select multiple Radio Buttons instead of just one.

tks

C

Former Member
0 Kudos

hi

For example if you want to search by userid,then map key to select to userid and selected key to the using which value you are comparing the userid.

Former Member
0 Kudos

hi,

yes, its true that the radio buttons are not getting recognized as a group.

but we are not having the radio button group by key option for a cell editor..

if i am right u have a column in which u have a radio button in each row in some field and u want only one row to be selected at a time right?

can u tell how did u bind the keyToSelect property ?

Regards,

Satya

Former Member
0 Kudos

hi,

u can try like this,

take a context attribute of type boolean,

bind this for the keyTo Select property of the radiobutton,

--iterate through the elements, check the condition if the keyToSelect is true.

if it is true, then set the property of all other elements to false.

Regards,

Satya.

Former Member
0 Kudos

hi,

use a radio button group by key

Regards,

Satya.