-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I have a grid and want a menu to show/hide columns.
<columns menupopup="auto">
This fits perfectly, BUT I can check only one column at the time, before the menu disappears. I want the menu to stay, so that you can check/uncheck more columns.
Do I have to manually "create" a popup with the same functionality or can I alter the autopopup?
There is an open feature request for this, with a POC custom script. The script itself is a rough outline not suitable for production use, but you could adapt it to your application. My best advice would be to use the workflow shown in the POC script to make custom widget classes and apply those in zul or java to your components.
Update: Starting from ZK 8.6.1, menupopup will support two automatic layouts:
Generate the auto menu, close on each user action (group, sort, add / remove columns)
<listhead menupopup="auto">
Generate the auto menu, keep the menu open after user actions, close the menu popup out clicks outside of the menu popup.
<listhead menupopup="auto-keep">
Keep an eye out for release notes / documentation updates upon ZK 8.6.1 release
Asked: 2014-07-04 10:10:43 +0800
Seen: 38 times
Last updated: Dec 03 '18
Frozen Columns + Scroll = Header Line Height Change
Unable to get group icon in grid columns menu
Auxheader hide problem in grid
How to customize grid columns width using only css
Hidden column appears when sorting (Grid)
Grid + AuxHeader: How to prevent unnecessary rows?