Is it possible to reload the visible property of a listbox?

asked 2020-04-17 21:02:07 +0800

softteam gravatar image softteam
120 7

I have a listbox that I want to make visible if variableCount is >0 and invisible if variableCount is 0. The problem I have is that variableCount is 0 and when is reloaded, it gets its value but the Listbox never goes visible. Is it possible to reload the "visible" property?

I got something like this:

<vlayout viewModel="@id('vm') >

<listbox visible="@load(vm.variableCount gt 0? true : false)">



delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted

answered 2020-04-21 22:00:48 +0800

softteam gravatar image softteam
120 7

Any ideas?

Thank you,


link publish delete flag offensive edit

answered 2020-04-23 11:24:24 +0800

cor3000 gravatar image cor3000
5173 2 7
ZK Team

updated 2020-04-23 11:26:16 +0800

yes it is possible, here an example: https://zkfiddle.org/sample/1hqvnic/1-Another-new-ZK-fiddle

Once you notify-change the variableCount property the listbox visibility updates accordingly.

What did you try that didn't work? (feel free to update/save the zkfiddle and post the link here)

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2020-04-17 21:02:07 +0800

Seen: 12 times

Last updated: Apr 23

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More