cancel
Showing results for 
Search instead for 
Did you mean: 

Checkboxgroup

Former Member
0 Kudos

Hi,

first i describe you my scenario.

Actually i am using checkboxgroup and bind it to my context node attribute which is of type text .every thing is working fine ,but a basic requirement that still not fulfill .

I want that intially when my application launch the first checkboxgroup element looks checked and remaining unchecked.

But problem that i am facing is initially when application launched all checkboxgroup element unchecked.

so my qestion is

is it possible to make first element checked on first launch

Regards,

Sudhanshu

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks a lot...

Former Member
0 Kudos

Hi,

for example you have node like

City_Node

-> City Name

(Example values in node : Bangalore, Hyderabad,Pune,..)

This node you mapped with Checkboxgroup right?.

You need select some of cites by default check on application load right.

If i am not wrong this below code will help you.

write this code to select(checked) onload.

 
wdContext.nodeCitys_Node().setSelected(1, true); 

result Hyderabad checked on load of application.

Regards,

Satya.

Former Member
0 Kudos

Hi satya,

Sorry , but i do not get select(checked) onload.

what is this and where i will get this one.

Thanks,

sudhanshu

Former Member
0 Kudos

Hi,

if example "Items" node is used to populate the checkboxgroup.

then to select first one use the following statement.

wdContext.nodeItems().setSelected(0,true);

Regards,

ramesh

Former Member
0 Kudos

Hi,

After creating node values you need to write above my replied code for check box selection.

I think your creating node values in doInit(), writer code

wdContext.nodeTest().setSelected(1, true); (2nd check box selected).

Regards,

Satya.