Update Listbox children bound with method using View Model

asked 2013-05-13 08:36:33 +0800

JustinFrost gravatar image JustinFrost
143 1 6

Hi All,

I have an accordion tabbox, each tabpanel contails a list box which is bound using a view model method call:

<tabpanels children="@bind(vm.topLevelNav)">
    <template name="children" var="parent">
            <listbox children="@bind(vm.getChildNav(parent.hierId))">
               <template name="children" var="navItem">
                   <listcell label="@bind(navItem.name)"/>


How do I update only the listbox using the model ? If I do a NotifyChange("topLevelNav"), it refreshes but resets the accordion to its orginal state (top tab expanded) which is not what I want.

Any help appreciated.


delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-05-22 12:33:59 +0800

cor3000 gravatar image cor3000
4952 2 7
ZK Team

Hi Justin,

this can be done like using BindUtils.postNotifyChange(...) as in this example here on ZK fiddle


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




Asked: 2013-05-13 08:36:33 +0800

Seen: 37 times

Last updated: May 22 '13

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