cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable Radio button

Former Member
0 Kudos

Hi all,

Please help me to resolve this.

I have 4 Radio buttons, in a scenario i want to disable only 2 radio buttons.

I used RadioButtonGroupByIndex for creating radio buttons.

The following code i am using for binding the values.

for (int cnt = 0; cnt < 2; cnt++)

{

IPrivateInputModuleView.IKnowledgeElement kRatingText = wdContext.createKnowledgeElement();

kRatingText.setKnowledgeRating((String)objVector.get(cnt));

knowledgeRatingList.add(kRatingText);

}

wdContext.nodeKnowledge().bind(knowledgeRatingList);

wdContext.nodeKnowledge().setLeadSelection(0);

Thanks in advance

Rajakumar.K

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

This is not possible if you use RadioButtonGroupByIndex, only with separate radio buttons.

Armin

Former Member
0 Kudos

Thanks Armin.

Former Member
0 Kudos

Hi,

Create an attribute of type boolean in the node which you used for the radiobutton, and set this attribute to false according to which radiobuttons should make disable while creating the element for the node

Regards,

Saravanan K

former_member85655
Active Participant
0 Kudos

The radio button's "enabled " property can be bound to a boolean a value attribute. Switch the attribute values as true or false and then it should work.

Regards,

Arun

Former Member
0 Kudos

Thanks Arun,

I already tried the same,which you have mentioned. It is getting disabled all Radio Buttons. Because Im using RadioButtonGroupByIndex.

Regards

Rajakumar