Selected Item data from a table to textbox in ZK

霸气de小男生 提交于 2019-12-20 04:59:07

问题


I'm developing a small web application for storing data of a hospital's patients in order to learn more about zk and it's amazing features.

My goal this time is when I select a row (checkmark) I want to take the data of the row (red color) to their corresponding textbox (blue) and this works when I choose any row of the table:

Maybe it's a kind of configuration of the listbox or maybe I have to implement a method to get what I want, I don't know.

It will be great if you give me a hand with this.


回答1:


It's nice to see ZK is spreading and I hope you like it, I know I do like it.
Your goal is actually on the ZK demo.

https://www.zkoss.org/zkdemo/grid/data_binding

The advantage of the demo site is that you can download the code so you can modify it also.
If you don't understand the demo, post some comment with a good explication what you don't understand and I'll try to update the answer with the explication.



来源:https://stackoverflow.com/questions/36875530/selected-item-data-from-a-table-to-textbox-in-zk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!