0

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

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

softteam gravatar image softteam
130 1 8

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)">

Thanks,

Javier

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

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

softteam gravatar image softteam
130 1 8

Any ideas?

Thank you,

Javier

link publish delete flag offensive edit
0

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

cor3000 gravatar image cor3000
6280 2 7

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

Follow
1 follower

RSS

Stats

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

Seen: 12 times

Last updated: Apr 23 '20

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