cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: Radio button group by index

Former Member
0 Kudos

Hi,

I have a radio button group by index where i have two elements in that. One of it is coming checked by default. How can i make both unchecked initially.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi jyoti..

if you are setting the value as dynamically in your Radiobuttongroupbyindex ...then you should set

initializeLeadSelection property of context value node as false....then it will not selected by default

Thanks

sudhir

Edited by: sudhir kumar on Apr 7, 2009 2:01 PM

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Armin,

If i use the below code as suggested,

wdContext.nodexxx().setLeadSelection(IWDNode.NO_SELECTION(-1)); its showing error.

Former Member
0 Kudos

Oh boy. IWDNode.NO_SELECTION is a constant representing value -1.

Armin

Former Member
0 Kudos

Hi Jyothi,

Specifying IWDNode.NO_SELECTION is sufficient, no need to write IWDNode.NO_SELECTION(-1).

Thanks,

Sonali.

venkatakalyan_karanam
Active Contributor
0 Kudos

Hi Jyothi

You can go with Radio Button Group By Key and Bind with the selected key with the Cntext Attribute of data type Simple Type in Dictionary .Create a Simple type in dictionary and give the enumeration values

as per your requirements.Create a context Attr of this typa and bind this.

Hope you got the answer.

Regards

Kalyan

Former Member
0 Kudos

Why should he do that?

Armin

Former Member
0 Kudos

By setting the lead-selection of the context node to IWDNode.NO_SELECTION (-1). But in a radio button group, usually there is always one element selected.

Armin