cancel
Showing results for 
Search instead for 
Did you mean: 

Radiobutton in Table : by default all are checked

Former Member
0 Kudos

I tried creating table.Then I added Radiobutton as a tablecelleditor in Table column.Now when I tried deploying it,The radiobuttons are checked by default.

Please Help me in to solve this problem

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

See this topic from last year, this would solve your problem:

Answers (3)

Answers (3)

former_member751941
Active Contributor
0 Kudos

Hi Preeti,

In the Element Property of Radio button.

Bind <b>boolean</b> type attribute in <b> selectedKey</b> property.

Bind <b>string </b> or <b> integer </b> type attribute in <b> keyToSelect</b> property.

Regards,

Mithu

Former Member
0 Kudos

Hi,

when you use an individual radio button the default check can be avoided.This can be acheived by creating three attributes.The 'Keytoselect' property must be unique for every radiobutton and the 'selectedkey' property must be a shared one.Then you can set value for 'Keytoselect' property to select a particular radiobutton.

When you want a particular radiobutton to be checked when loaded then following code can be used:

wdContext.currentContextElement().setSelected_Key_Att(wdContext.currentContextElement().setFirst_att);

Regards,

Dinesh

Former Member
0 Kudos

Context structure, data binding, context data?

Armin