First time here? Check out the FAQ!
In Section 4.2 of the ZK Essentials documentation you construct a TodoList with a Listbox displaying the list of Todo items. Each Listitem displays a checkbox. When a Listitem is selected the selected Todo item is shown on the east (right side) margin that also shows a checkbox for the selected Todo item.
Using the project downloaded from Github there is a problem with the checkboxes.
Checking the checkbox in the list also updates the checkbox in the detail display.
Checking the checkbox on the detail display however does NOT update the checkmark on the Todo item in the list.
How do I make this work? The example you provide in Github for the zkessentials project doesn't work. I'm using the Community Edition of ZK 9.0.0.
Hi there!
I can't seem to reproduce the issue locally on the current commit.
The right side panel is using a form binding to show the difference between form data and committed data. As long as the user doesn't click the "update" button on the bottom of that panel, the right-side form will not affect the main dataset. If you click the checkmark, then click the update button, the change will be applied, and should affect the rest of the data state. However, if you click "reload", local changes made to the entry (the status, title, description) will be discarded and reloaded from the model.
Do you see a different result, or an error in the console?
Hi MDuchemin!
Thanks for following up on this. I get it now, I misunderstood the behavior of the detail panel. The MVC example of the ToDo List works such that when you check the checkbox in the detail panel, the checkbox in the list also gets checked at the same time.
I wasn't taking into consideration that with the MVVM version of the ToDo List the change to the checkbox doesn't get registered until you click the Update button.
Thanks again for you help!
Asked: 2020-04-17 23:44:57 +0800
Seen: 12 times
Last updated: Apr 21 '20
Column Layout Background Color
Migrate to ZK 9 From ZK 8 gives error
Component definition not found: drawer in [LanguageDefinition: xul/html] [closed]
ZK 9 Drawer Component - Help to set parent
Display data from database on a rendered Grid
ZK 9 Listhead property children not found exception