-
FEATURED COMPONENTS
First time here? Check out the FAQ!
We are using zk 7.0.0.
It is failing to hide columns of a grid, with the "hflex" attribute,.
We are trying to hide in two different ways and both fail:
Code causing the problem:
<zk>
<window>
<button label="show col2" onClick="col2.setVisible(true);"></button>
<button label="hide col2" onClick="col2.setVisible(false);"></button>
<grid>
<columns menupopup="auto">
<column id="col1" hflex="1" label="col 1" />
<column id="col2" hflex="2" label="col 2" />
</columns>
<rows>
<row>
<cell><label value="col 1 1"/></cell>
<cell><label value="col 1 2"/></cell>
</row>
<row>
<cell><label value="col 2 1"/></cell>
<cell><label value="col 2 2"/></cell>
</row>
</rows>
</grid>
</window>
</zk>
Link to an example of the problem: http://zkfiddle.org/sample/38viibg/3-grid-visible-column
I will suggest reordering will help you to do this May be this will help you
Thanks for the reply, but I did not fix the problem.
I tried the version 7.0.1.FL.20140115 and it seems the bug is fixed.
Would I could give an approximate release date of the version 7.0.1?
Asked: 2014-01-14 17:34:30 +0800
Seen: 65 times
Last updated: Jan 20 '14
Upvote by me. Tested the fiddle and it does work on zk 6.5.x and not on the zk 7.0.0 @xeridia nice work.
chillworld ( 2014-01-14 21:11:49 +0800 )edit