Hi,
There seems to be a difference between Code-First and Model-First Itemtypes Fieldgroups. When using the show/hide fieldgroups based on other fields. This is not working properly on Code-First itemtypes. It only show hidden fieldgroups on change of target field, so not onload and also not when switching the target field back to initial value.
So I checked the Itemtype definitions in the database, and there is a difference in the xml attributes for groups ('visibilityCondition' and 'visibilityConditionValueType'):
ModelFirst:
<group name="Grouped" systemName="Grouped" collapsibleState="None" visibilityField="ExampleField" visibilityCondition="0" visibilityConditionValueType="3" visibilityConditionValue="grouped">
Code-First:
<group name="Grouped" systemName="Grouped" collapsibleState="None" visibilityField="ExampleField" visibilityCondition="Equals" visibilityConditionValueType="0" visibilityConditionValue="grouped">
I've defined the itemtypes the same way, see screenshot for example. Example is tested on DW 9.5.