cancel
Showing results for 
Search instead for 
Did you mean: 

Multiselection

nikhil_bose
Active Contributor
0 Kudos

Experts!!

Can we select/deselect all elements(rows) in a table through coding?

if possible please give me some hints.

nikhil

Edited by: Nikhil ßos on Jul 9, 2008 3:14 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use the following method of the node

wdContext.nodeOrders().setSelected(int index, boolean selected)

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

wdContext.nodeOrders().setSelected(4, true);

Regards

Ayyapparaj

Answers (3)

Answers (3)

nikhil_bose
Active Contributor
0 Kudos

thread closed

Former Member
0 Kudos

code to Select All

for( int i=0; i< wdContext.nodeNode().size(); i++)

{

wdContext.nodeNode().setSelected(i, true);

}

code to Deselect All

for( int i=0; i< wdContext.nodeNode().size(); i++)

{

wdContext.nodeNode().setSelected(i, false);

}

regards,

Deepak

Former Member
0 Kudos

Hi

for(int i=0;i<wdcontext.node<name>().size();i++)

{

wdcontext.node<name>().Setselected(i,true);

}

same for deselecting .I hope these will work.

thanks,

Tulasi