cancel
Showing results for 
Search instead for 
Did you mean: 

Select All button in ItemListBox

TimVDB92
Participant
0 Kudos

Hi,

I have an ItemListBox in my view.

I just made a button "SelectAll" for the user, where he can easily select all items in de box.

In the actioncode of the button I need to select all items. I just found an option "SetSelected" but I don't know how to use it and where..

Already wrote some basic code:

           // Looping the node

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

// Here I should call the ItemListBox and set the selected boolean to true of something like that ( “GetSelected” of “GetLeadSelection()” )

}

Any help with my problem!

Accepted Solutions (1)

Accepted Solutions (1)

TimVDB92
Participant
0 Kudos

Just solved this case

Code:

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

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

}



Regards

Answers (0)