Add the following blocks in zk.xml of your ZK application to make them in effect.

org.zkoss.pivot.pivotModel.columnOpenOnInit

This property determines whether to open all column header nodes when initialized (including constructing a new model or changing pivot fields). True means to open all nodes. Default value is false.

    <library-property>
        <name>org.zkoss.pivot.pivotModel.columnOpenOnInit</name>
        <value>true</value>
    </library-property>

org.zkoss.pivot.pivotModel.rowOpenOnInit

This property determines whether to open all row header nodes when initialized (including constructing a new model or changing pivot fields). True means to open all nodes. Default value is false.

    <library-property>
        <name>org.zkoss.pivot.pivotModel.rowOpenOnInit</name>
        <value>true</value>
    </library-property>

#