How to check/uncheck ALL options in Combo?

Hello,

I need to check/uncheck ALL options in a specified combo:

combo.unCheckAll();
combo.checkAll();

How can I accomplish this? I have searched the forum and looked through your documentation without any success.

Thank you in advance!

Hello,

there is setChecked methof to change checkbox state.

If the number of option is unknown, you may try the following:

function unCheckAll(combo){ for(var i=0; i < combo.optionsArr.length;i++) combo.setChecked(i,false); } function checkAll(combo){ for(var i=0; i < combo.optionsArr.length;i++) combo.setChecked(i,true); }