Update yCount

I have a combo view which is populated on the fly via:

$$(“myCombo_list”).clearAll();
$$(“myCombo_list”).parse(newList);

//Attempt to set yCount
$$(“scenarioSelector”).define(“yCount”, selectedAnalysis.configuration.length);
$$(“scenarioSelector”).data.yCount = selectedAnalysis.configuration.length;
$$(“scenarioSelector”)._settings.yCount = selectedAnalysis.configuration.length;

However, the yCount doesn’t seem to be updated. What’s the proper way to set the number of items to show in the combo view without recreating the entire object?

Thanks,
Michael

Try to use the following:

/to define new rows number for list/
$$(“myCombo_list”).define(“yCount”,selectedAnalysis.configuration.length);

/to resize popup/
$$(“myCombo_list”).getParent().resize();

Excellent - apologies for my discrepancies in naming. Resizing did the trick.

Thanks again,
Michael